Skip to content
Discussion options

You must be logged in to vote

If you are using ssr (which is on by default) the code is executed on the server where the clients localStorage is not available. Therefore you simply can't achieve it.

If you need ssr support you have to use another state method like a cookie or the url. Make sure to read the state in a load function.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ZachSaucier
Comment options

@david-plugge
Comment options

@ZachSaucier
Comment options

Answer selected by ZachSaucier
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