I'm trying to use AsyncStorage
('@react-native-community/async-storage') persistance using mobx-persist
. My implementation is basically this: https://github.com/pinqy520/mobx-persist. I can see my store hydrated (in constructor of store itself). I can also access my store in my components, but no changes are persisted between app launches. Is mobx-persist even fit for that? What am I missing? Documentation is trivial, poor and outdated, as well as corresponding samples (appears to be quite typical for anything react-*).
UPDATE: just noticed it's reading in componentDidMount that fails. Looks like store is hydrated later then in componentDidMount. Any idea why?