Skip to content

Wait for rehydration of multiple stores #426

Closed Answered by jbrodriguez
jbrodriguez asked this question in Q&A
Discussion options

You must be logged in to vote

I think I have answered my own question

I have a rehydrated prop in the store and a setRehydrated function.

In the persist config I whitelist all properties needed except for the rehydrated prop.

In the components that consume the stores, I guard the rendering by checking the rehydrated prop of all the stores.

it works :)

Replies: 4 comments 3 replies

Comment options

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

Answer selected by jbrodriguez
Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

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

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