-
-
Notifications
You must be signed in to change notification settings - Fork 266
Closed
Description
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
| // Memoize store if client | |
| if (!store) { | |
| store = createStore(); | |
| } |
this makes it impossible to inject an empty store.
Metadata
Metadata
Assignees
Labels
No labels