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
{{ message }}
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
Make more createPersistedState objects?
The key is purely for you localstorage index, so if you want more of that, you shouldmake more objects.
If you want more paths, in my app I have a namespace called tabs where in that state, there lives a couple of objects and of that objects, I only want to save one: list, so when I want to include that namespace, I use paths: ['tabs.list']. My guess to put more namespaces in one storage object is using things like:
paths: ['tabs.list', 'colors', 'myTacoNamespace`]
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How can I use the
key
andpath
options with multiple namespaces?The text was updated successfully, but these errors were encountered: