From bdd5b9ef3d25fb35fde33966520474c5fc4ec894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=AD=90=E5=A4=A7=E5=93=88?= Date: Sun, 19 Feb 2017 02:39:34 +0800 Subject: [PATCH] Add note for next-connect-redux #1193 (#1203) --- examples/with-redux/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-redux/README.md b/examples/with-redux/README.md index 93a1b040..893bc0e9 100644 --- a/examples/with-redux/README.md +++ b/examples/with-redux/README.md @@ -35,7 +35,7 @@ Our page is located at `pages/index.js` so it will map the route `/`. To get the For safety it is recommended to wrap all pages, no matter if they use Redux or not, so that you should not care about it anymore in all child components. -`withRedux` function accepts `makeStore` as first argument, all other arguments are internally passed to `react-redux connect()` function. `makeStore` function will receive initialState as one argument and should return a new instance of redux store each time when called, no memoization needed here. See the [full example](https://github.com/kirill-konshin/next-redux-wrapper#usage) in the Next Redux Wrapper repository. +`withRedux` function accepts `makeStore` as first argument, all other arguments are internally passed to `react-redux connect()` function. `makeStore` function will receive initialState as one argument and should return a new instance of redux store each time when called, no memoization needed here. See the [full example](https://github.com/kirill-konshin/next-redux-wrapper#usage) in the Next Redux Wrapper repository. And there's another package [next-connect-redux](https://github.com/huzidaha/next-connect-redux) available with similar features. To pass the initial state from the server to the client we pass it as a prop called `initialState` so then it's available when the client takes over.