You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sadly, this doesn't fix it for me - it'd be great to see support of Vite in @rehooks/local-storage though as it's been around for quite some time & becoming really popular too 😉
When I try and use the local storage hook in a vite project, running in dev mode, I get the following error:
Line 14 of local-storage-events.ts references
global.window
. As far as I'm awareglobal
isn't a global variable in browser environments.From this discussion I've gathered that most, but not all, bundlers transform
global
towindow
.Could line 14 be safely rewritten to the following?
The text was updated successfully, but these errors were encountered: