reduxjs/redux

[Docs] Redux with Next.js Per-route state

raky291 opened this issue · 1 comments

What docs page needs to be fixed?

What is the problem?

I'm learning Nextjs and want to setup Redux in Nextjs but this section is not very clear to me Additional Configuration > Per-route state, also the source code is not available in the documentation. It seems as if the documentation is not updated, it doesn't match with the project npx create-next-app --example with-redux my-app.

image

What should be changed to fix the problem?

Adding an example would be useful to understand why I should initialize the store again, and in what situation I should do it.

I am having the same problem. I created a fork from nextjs repo with-redux example with minimal reproduction...

vercel/next.js@7343c29

And attempt to explain it here: https://github.com/billymoon/next.js/blob/canary/examples/with-redux/problem.md

I also opened a ticket on next js repo here: vercel/next.js#68434

Very interested if anyone has any leads on how to resolve this issue.