A simple introduction to state management with MobX in React Native
Madhu
882

Very subtle explanation of MobX that I’ve come across so far. Quick question though, if you use <Provider>at the root view are you supposed to list out all the stores that you’d ever need in the app on any of the child components? Regardless of whether you list all of them or not, do we need @inject on those individual components? (I tried <Provider store={[userStore, updatesStore]}> for example)

The documentation was not much clear on that, and when I tried to @inject so I can use derive them from props it complained about not able to find the store and said “MobX Injector: Store is not available, make sure it is provided by some Provider”.

Show your support

Clapping shows how much you appreciated Askar’s story.