Answered by
dai-shi
Oct 20, 2025
Replies: 1 comment 3 replies
|
How about this? - () => localStorage
+ () => typeof localStorage !== 'undefined' ? localStorage : undefined |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Oops, good catch.