Closed jamievicary closed 5 years ago
I do this
const persistedReducer = persistReducer(persistConfig, reducer)
const store = createStore(persistedReducer, composer)
const persistor = persistStore(store, {}, () => {
const state = store.getState()
})
Thanks Elzup.
After rehydration, I need to modify my state. But the state is not provided as an argument for the callback. How can I access my state after rehydration?