阅读背景:

如何使用Redux解决AJAX调用以响应状态更改?

来源:互联网 

I'm converting an existing state model to Redux and it has been painless for the most part. However the one point I'm having trouble with is converting "observed" state ajax requests. Essentially, I have certain ajax requests "linked" to other pieces of state, so no matter who modifies them they'll always be issued correctly. I can get similar behavior by subscribing to the Redux store updates, but firing actions in the listener feels like a hack.I'm converting an existing state model to Redux




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: