-
|
Hi there 👋 Thank you for all the great work on the library. I am just wondering if there is a way to version the storage when you introduce breaking changes. Similar to this which I am currently using - https://zustand.docs.pmnd.rs/integrations/persisting-store-data#version |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi, thanks for trying out stan-js 😄 for now there is nothing built-in like that because we want to keep library lean, but we tried to make API flexible enough to allow for such extensions. Here is package with some utils for stan-js that contains |
Beta Was this translation helpful? Give feedback.
Hi, thanks for trying out stan-js 😄 for now there is nothing built-in like that because we want to keep library lean, but we tried to make API flexible enough to allow for such extensions. Here is package with some utils for stan-js that contains
withMigrationsutil which will allow you to version storage and safely migrate data