Skip to content

Commit

Permalink
Merge pull request #322 from ValentinH/patch-1
Browse files Browse the repository at this point in the history
Add a more explicit note on SSR
  • Loading branch information
supasate committed Jun 26, 2019
2 parents 37e90d7 + ed97d61 commit 980a298
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -92,6 +92,7 @@ export default function configureStore(preloadedState) {

- Wrap your react-router v4/v5 routing with `ConnectedRouter` and pass the `history` object as a prop. Remember to delete any usage of `BrowserRouter` or `NativeRouter` as leaving this in will [cause](https://github.com/supasate/connected-react-router/issues/230#issuecomment-461628073) [problems](https://github.com/supasate/connected-react-router/issues/230#issuecomment-476164384) synchronising the state.
- Place `ConnectedRouter` as a child of `react-redux`'s `Provider`.
- **N.B.** If doing server-side rendering, you should still use the `StaticRouter` from `react-router` on the server.

```js
// index.js
Expand Down

0 comments on commit 980a298

Please sign in to comment.