Skip to content

Commit 3a175b5

Browse files
authored
Update README.md
1 parent 64e9249 commit 3a175b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Redux simple router
2+
[![Build Status](https://travis-ci.org/jedirandy/redux-simple-router.svg?branch=master)](https://travis-ci.org/jedirandy/redux-simple-router)
23

34
A redux middleware that does one simple job: matches a route and dispatch an action.
45

@@ -21,7 +22,7 @@ const store = createStore(
2122
applyMiddleware(router)
2223
);
2324

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
2526

2627
store.dispatch(navigate('/todos/123')); // change route
2728
```

0 commit comments

Comments
 (0)