What is the improvement or update you wish to see?
I would like to see the documentation in the README be consistent with what's in the code.
In the next.js/examples/with-redux-thunk README.md, it states:
... The MyApp component is wrapped in a withReduxStore function ...
However, in the code at pages/_app.js there is no MyApp component nor is there a withReduxStore function, so it's really confusing. I'm guessing that got replaced with the hook in _app.js called useStore??
Additionally, it states:
1.) pages/index.js will utilize connect from react-redux ...
which seems wrong, because there's no call to any connect function in the actual code.
Also the last sentence states:
... then in store.js change (line 19) store.replaceReducer(createNextReducer(initialState)) to store.replaceReducer(createNextReducer).
that also seems wrong because i can't find store.replaceReducer anywhere.
Is there any context that might help us understand?
Just read the README and try to follow along in the code.
Does the docs page already exist? Please link to it.
https://github.com/vercel/next.js/tree/canary/examples/with-redux-thunk/README.md
What is the improvement or update you wish to see?
I would like to see the documentation in the README be consistent with what's in the code.
In the next.js/examples/with-redux-thunk README.md, it states:
... The MyApp component is wrapped in a withReduxStore function ...However, in the code at
pages/_app.jsthere is noMyAppcomponent nor is there awithReduxStorefunction, so it's really confusing. I'm guessing that got replaced with the hook in _app.js calleduseStore??Additionally, it states:
1.) pages/index.js will utilize connect from react-redux ...which seems wrong, because there's no call to any
connectfunction in the actual code.Also the last sentence states:
... then in store.js change (line 19) store.replaceReducer(createNextReducer(initialState)) to store.replaceReducer(createNextReducer).that also seems wrong because i can't find
store.replaceReduceranywhere.Is there any context that might help us understand?
Just read the README and try to follow along in the code.
Does the docs page already exist? Please link to it.
https://github.com/vercel/next.js/tree/canary/examples/with-redux-thunk/README.md