简体   繁体   English

使 mobx 数据存储在应用程序重新启动时持久化(本机反应)

[英]Make mobx data store persistent across app restarts (react native)

I guess this is not an intended usecase for mobx.我想这不是 mobx 的预期用例。 But maybe someone has already implemented something like that?但也许有人已经实现了这样的东西? Using AsyncStorage it should be possible to persist and load the stores.使用AsyncStorage应该可以持久化和加载存储。

Or is this a sign, that I need somethign other than mobx?或者这是一个迹象,表明我需要 mobx 以外的其他东西?

This is the package I was looking for.是我要找的包。 Works like a charm using AsyncStorage.使用 AsyncStorage 就像一个魅力。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM