Skip to content

Facing hydrating problems after updating to 9.0 #536

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

You must be logged in to vote

Well, sorry for potentially wasting someone's time, but it seems I just accidentally put the useHydration call after the selectors that extract the global data in my AppWrapper:

function AppWrapper(...){
   const globalData = useSelector(...);
   wrapper.useHydration(...); // should be at the top
}

which caused the globalData to be empty on the first render.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aleksakojadinovic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant