-
Recently I was adding const storageValue = {
state: {
count: 1,
}
} If it's different, i.ex. like this: const storageValue = {
count: 1,
} then Here's the diff with the changes I made: main...jmysliv:zustand:@jmysliv/get-state-fallback |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
To me, this feels beyond the scope of |
Beta Was this translation helpful? Give feedback.
-
I think that it might introduce breaking changes. |
Beta Was this translation helpful? Give feedback.
Unfortunately, it feels too big.
I think it's the design decision. I've been already a bit skeptical about
migrate
even, because it's not often used, and I also previously recommended using custom storage for more control such as migrating from different storage format. So, I think it's fairly reasonable to say that your case is out of the scope ofpersist
in this repository. That doesn't block someone to develop a more featured persist library in the ecosystem.