Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Can mobx persist state (a la redux)? #390
MobX doesn't provide a standard app architecture that prescribes how to organize the state, so the answer is, it depends. If you use a plain object tree it is pretty simple, if you use a plain object graph
Usually setting an efficient serialization mechanism yourself is also not too hard, see for example https://github.com/mobxjs/mobx-reactive2015-demo/blob/master/src/stores/domain-state.js#L46
I hope that helps!
@pdeva please refrain from comment on issues that are closed for over a year, most people won't see it.
Standardized persisting solutinos are the