Closed cavellpotter closed 10 months ago
As it is, I do not see a proper solution that would work all the time. Maybe doable with a custom storage ?
As it is, I do not see a proper solution that would work all the time. Maybe doable with a custom storage ?
maybe we can try to receive a reactify variable to achieve dynamic settings.
As for now this cannot be achieved in a "clean" way, maybe this can be considered for an eventual v4, but that would require running a function to return the storage everytime the persistence is called, and giving access to lots of things from this function.
Closing this for now but i'll consider it if v4 ever sees the light 🙏
Describe the bug
如何在代码中动态指定持久化到哪个storage中?
Reproduction
11
System Info
Used Package Manager
pnpm
Validations