We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64e9249 commit 3a175b5Copy full SHA for 3a175b5
README.md
@@ -1,4 +1,5 @@
1
# Redux simple router
2
+[](https://travis-ci.org/jedirandy/redux-simple-router)
3
4
A redux middleware that does one simple job: matches a route and dispatch an action.
5
@@ -21,7 +22,7 @@ const store = createStore(
21
22
applyMiddleware(router)
23
);
24
-store.dispatch(navigate(location.pathname)); // for it to work when refreshed
25
+store.dispatch(navigate(location.pathname, false)); // for state to be restored from URL when refreshed
26
27
store.dispatch(navigate('/todos/123')); // change route
28
```
0 commit comments