Replies: 2 comments 2 replies
-
|
Not currently, no. I don't foresee this being added to the core as an official part of valtio, as this goes against the design principles chosen (@dai-shi correct me if I'm wrong). This might merit a discussion on providing a more stable method of adding functionality, however. Middleware, plugins, etc. That being said, I'll look into making a new persist library that can be used with the current version of valtio. @dai-shi Thoughts? |
Beta Was this translation helpful? Give feedback.
-
https://github.com/valtiojs/valtio-persist @Noitidart was generous enough to donate the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to request a built-in, officially supported way to persist state in Valtio, similar to Zustand's persist middleware. The current approach requires manually subscribing to state changes and handling serialization, which is cumbersome and error-prone.
Having an officially maintained solution would improve developer experience and prevent reliance on outdated third-party packages (valtio-persist). Is there any plan to introduce this in future releases?
Beta Was this translation helpful? Give feedback.
All reactions