Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
subscribe listener can get action param? #1057
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.