You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 26, 2018. It is now read-only.
*[bdefore/universal-redux](https://github.com/bdefore/universal-redux) - npm package for universally rendered redux applications
119
119
*[yangli1990/react-redux-isomorphic](https://github.com/yangli1990/Isomorphic-Universal-React-Template) - boilerplate for universal redux and redux-simple-router
@@ -128,15 +129,15 @@ _Have an example to add? Send us a PR!_
128
129
129
130
Call this to create a middleware that can be applied with Redux's `applyMiddleware` to allow actions to call history methods. The middleware will look for route actions created by `push`, `replace`, etc. and applies them to the history.
Call this on the middleware returned from `syncHistory`to start the syncing process between the history and store instance.
134
+
By default, the syncing logic will not respond to replaying of actions, which means it won't work with projects like redux-devtools. Call this function on the middleware object returned from `syncHistory`and give it the store to listen to, and it will properly work with action replays. Obviously, you would do that after you have created the store and everything else has been set up.
134
135
135
136
Supply an optional function `selectRouterState` to customize where to find the router state on your app state. It defaults to `state => state.routing`, so you would install the reducer under the name "routing". Feel free to change this to whatever you like.
136
137
137
138
#### `ReduxMiddleware.unsubscribe()`
138
139
139
-
Call this on the middleware returned from `syncHistory` to stop the syncing process set up by `syncHistoryToStore`.
140
+
Call this on the middleware returned from `syncHistory` to stop the syncing process set up by `listenForReplays`.
0 commit comments