Skip to content

How to support SSR redux state with code splitting (injection) #4897

Answered by markerikson
md384 asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, not sure if we have specific advice here. I'd say that comparing the known reducer keys vs the incoming server state keys is an option - for any state key that doesn't have a reducer yet, add a no-op reducer function reducers[key] = (state) => state, etc). That should satisfy combineReducers.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@md384
Comment options

Answer selected by md384
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants