Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this work with Mobx State Tree? #6

Closed
aswinmohanme opened this issue Jun 17, 2018 · 4 comments
Closed

Does this work with Mobx State Tree? #6

aswinmohanme opened this issue Jun 17, 2018 · 4 comments

Comments

@aswinmohanme
Copy link

Does this library work with Mobx State Tree, if so could you give some examples or some pointers in the right direction

@acrazing
Copy link
Owner

I haven't used MST before, but I read its documentation. Its model supports the toJSON method and load from JSON, so you can use autorun to persist/load without using this library.

@acrazing
Copy link
Owner

If you want to use version control and ignore feature with MST, it may be a better choice to give MST a PR.

@aswinmohanme
Copy link
Author

Thanks for the Response. I ended up using onSnapShot to persist the store.

@Venryx
Copy link

Venryx commented Nov 11, 2019

I just started using mst-persist, and it seems to work fine.

(I did hit this one issue, but I found a workaround, and added an explanation for the repo owner just now of how to fix it.)

That library doesn't have support for prop-versioning like this library's @version decorator, but I figure I'll roll my own implementation of that soon, once the pull-request adding transforms to mst-persist is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants