Skip to content
Discussion options

You must be logged in to vote

Oops, good catch.

-   createJSONStorage(() => localStorage, {
+   typeof localStorage === 'undefined' ? undefined : createJSONStorage(() => localStorage, {
      reviver: superjson.parse,
      replacer: superjson.stringify,
    }),

Replies: 1 comment 3 replies

Comment options

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

@dai-shi
Comment options

Answer selected by 0xaa55h
@0xaa55h
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
2 participants