-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSR store missing cookie data in Next 13 #44
Comments
Hi @wbobeirne, I just updated the demo to |
Hey @bjoluc, actually I'm also seeing a react hydration error on my end in the demo of this project. To repro, just increase the counter on one of the getStaticProps page, then reload the page. This doesn't happen with the getServerSideProps pages. |
Hi @abrouaux,
The behavior you describe is intended, I'm afraid: |
@bjoluc aw crap, you're totally right - this fact completely slipped my mind. An advice: it would help others to mention this in the various use cases of your example. Cheers! |
That's a good point! Maybe we should add a little notice on the static example pages, explaining what happens. WDYT? |
Actually I'm not even sure you should provide "getStaticProps" cases in your example - the only value of storing redux data in a cookie is to pre-render stuff based on client data. |
@abrouaux That's right. Nevertheless, it's important that state from |
Hey there, I've copied the example code identically but using next@^13, and I'm getting an hydration mismatch. It looks like my store is being initialized empty despite the cookies existing:
Were there any breaking changes in 13?
The text was updated successfully, but these errors were encountered: