Skip to content
Discussion options

You must be logged in to vote

@HermanPierre that's wrong, you should always had to handle that. There's no localStorage on server and you need to make sure that server and client first render are the same. On the client after first render you could hydrate and get the current state from the browser.

Note: remember that you need to render twice one on the server and one on the client when you use server mechanism/solution like SSR, SSG, etc

Replies: 2 comments 21 replies

Comment options

You must be logged in to vote
8 replies
@dbritto-dev
Comment options

@HermanPierre
Comment options

@dbritto-dev
Comment options

Answer selected by HermanPierre
@HermanPierre
Comment options

@dbritto-dev
Comment options

@HermanPierre
Comment options

@dbritto-dev
Comment options

Comment options

You must be logged in to vote
13 replies
@dbritto-dev
Comment options

@dbritto-dev
Comment options

@HermanPierre
Comment options

@dbritto-dev
Comment options

@tshmieldev
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
5 participants