Open vicenterusso opened 2 years ago
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`]
How can I use the
key
andpath
options with multiple namespaces?