Repository navigation
|
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 |
Answered by
ceski23
Aug 20, 2024
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 |
0 replies
Answer selected by
aharwood9
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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
withMigrationsutil which will allow you to version storage and safely migrate data