On change event for stored content
Opened this issue · 2 comments
freebolik commented
Hello.
You provide a good tool to work with. Thank you.
But Currently, there is no event handling mechanism provided. I mean handling storage change event https://w3c.github.io/webstorage/#the-storage-event and maybe cookie setTimeout listener spike.
guillaumepotier commented
Hi there,
Thanks for using basil!
Idea is quite good, could be great to implement this event mechanisme for every storage mechanism basil handle within its layer.
Though, it could be something tricky and ressource consuming (not fan of timeouts jungle) and not used by many.
What could be great is to think about an event plugin on top of basil.js (like done for sets, lists..)
WDYT?
freebolik commented
Yep, I think event plugin would be the right way.