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
Should there be possibility to clear any key, or just ones, used previously in persist calls?
Clear single key when un-persisting
Do we need this in the first place?
import{persist}from'effector-storage/local'constunpersist=persist({store: $store,key: 'key',})unpersist(true)// optional parameter to clear `localStorage` key?
2. Behaviour
What should happen on clearing localStorage?
Should persisted stores receive nulls? Or stay unchanged?
If this is to be two possible option — how this should looks like in API?
What should happen with persisted stores on the other browser tab?
Do we need ability to clear storage in this library, or this is out-of-scope?
I see three possible cases:
persist
function)Thoughts?
The text was updated successfully, but these errors were encountered: