No way to perform a custom merging with store's preloadedState
over reducer's defaultState
#260
Labels
preloadedState
over reducer's defaultState
#260
Am I missing something or there is still no way to customize init store by partially merge or fill server side or persistent storage data
preloadedState
into reducers'defatulState
? For example, if I have a server-side data that is supplied to the store bypreloadedState
:And the
defaultState
in reducers is:What I like to have in my store after init is like this:
We may manually merge the data In typical reducers or use
combineReducers
to achieve partial hydration that are described as follows:reduxjs/redux#433 (comment)
reduxjs/redux#433 (comment)
redux-actions
returns the wholepreloadedState
and use it as the initial state of the store ifpreloadedState
is notundefined
.Is there any way to customize init store in a more complex case?
The text was updated successfully, but these errors were encountered: