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
I've been thinking: What about being able to reactively jump from one storage to another? Like I make an app that saves, say, column information such as width, alignment, etc. to storage, but I want the user to be able to select if the data is stored for the "current window session" or "for all sessions". So effectively moving back and forth between storages.
Please have a look at [this comment[(https://github.com//issues/151#issuecomment-2543305186). It proposes the idea of users writing their own storage medium (I guess it can be renamed to storage adapter) to do anything they want whenever a value is read or written. It is a good option to tackle this, if you like the approach, that is.
Describe the feature in detail (code, mocks, or screenshots encouraged)
I want to be able to sync a cookie with local storage without having to think too much about it.
Perhaps exposing callbacks in the options like
onChange
that users could hook into to do whatever custom logic they want.--
I also want to be able to provide my own custom storage adapter. This may enable us to avoid the
onChange
altogether if handled appropriately.What type of pull request would this be?
Enhancement
Provide relevant links or additional information.
No response
The text was updated successfully, but these errors were encountered: