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
Dispatch an action and reset the store. The store is memoized on client to keep it between page transitions when working in a legacy mode (w/o _app).
I don't understand how to reset the store on initialization on server side. Because of this, the login data of the previous user remains on the server in the store. And before the hydration occurs, the server runs logic that erroneously uses the previous user's store.
Following this PR: #324
It's not possible anymore to re-initialize the store.
Why would you do that? When unit testing getServerSideProps() for example.
With 7.0.0-rc.1 it was possible to
delete window[STOREKEY]
to reset the store.Why do you memoize the store variable?
next-redux-wrapper/packages/wrapper/src/index.tsx
Lines 51 to 54 in e2255c2
this makes it impossible to inject an empty store.
The text was updated successfully, but these errors were encountered: