WICG / cookie-store

Asynchronous access to cookies from JavaScript
https://wicg.github.io/cookie-store/
Apache License 2.0
143 stars 35 forks source link

Event should only run on other tabs #225

Open ChurroC opened 5 months ago

ChurroC commented 5 months ago

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 commented 5 months ago

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