Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-konshin committed Jun 2, 2020
1 parent fd32cac commit 6433f8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const MyApp = ({Component, pageProps}) => (
<Component {...pageProps} />
);

export default wrapper.withRedux(MyApp, {wrapDefaultGetInitialProps: true});
export default wrapper.withRedux(MyApp);
```
</details>

Expand Down Expand Up @@ -936,6 +936,8 @@ export const getServerSideProps = ReduxWrapper.getServerSideProps(
### Usage with Redux Persist
Boilerplate: https://github.com/fazlulkarimweb/with-next-redux-wrapper-redux-persist
Honestly, I think that putting a persistence gate is not necessary because the server can already send *some* HTML with
*some* state, so it's better to show it right away and then wait for `REHYDRATE` action to happen to show additional
delta coming from persistence storage. That's why we use Server Side Rendering in the first place.
Expand Down

0 comments on commit 6433f8b

Please sign in to comment.