You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, in your reducer you're overwriting client state with server one. In this specific scenario it's enough to replace the order of arguments that you're spreading while merging states. In other cases you might need to implement more complex logic of merging client and server states.
Describe the bug
When using Next.js, Redux Toolkit, and Next Redux Wrapper, there is an issue with preserving the counter value between page transitions.
To Reproduce
It is strongly recommended to fork the CodeSandbox template here and create a reproducible case. It will greatly speed up debugging.
Steps to reproduce the behavior:
Expected behavior
I expected the counter value to remain unchanged when navigating from the 'test-1' page to the 'test-2' page.
Demo Link
A demo showcasing the issue can be found here.
Screenshots
If applicable, add screenshots to help explain the problem.
Desktop (please complete the following information):
Additional context
Add any other relevant context about the problem here.
The text was updated successfully, but these errors were encountered: