Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event should only run on other tabs #225

Open
ChurroC opened this issue Mar 25, 2024 · 1 comment
Open

Event should only run on other tabs #225

ChurroC opened this issue Mar 25, 2024 · 1 comment

Comments

@ChurroC
Copy link

ChurroC commented Mar 25, 2024

Currently I'm trying to use cookies using the cookieStore api instead of localStorage.
Normally I use the even "storage" do detect changes to localStorage from other tabs since the event doesn't fire on the current tab.
I feel like cookieStore should follow that standard and also make it easier for people to sync stuff like theme between tabs.

@ChurroC
Copy link
Author

ChurroC commented Mar 26, 2024

Even though the event is only on change it reruns even if cookie set to same value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant