-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
subscribe listener can get action param? #1057
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In my case, the action is sent to the server after "dispatch" is done. The server has same Redux store as client and the action changes the server state to synchronize with client state. Of course, this can be achieved using middleware. But it may be better if this is a default way of "subscribe listener". By preparing the same Redux store in server as well as in client, server-side state manipulation becomes same as client. In this concept, the action is a state synchronizer which is transferred among all the connected client including the server. |
This is exactly the use case for middleware. |
why subscribe can not get action.I don't know whether the following is a good idea
The text was updated successfully, but these errors were encountered: