Fetching Data

Learn how to fetch asynchronous data and optimizing with generator functions in MobX-State-Tree.

We have our image list stored on the server. MobX-State-Tree proposes two ways of fetching asynchronous data, but both are actions.

Creating an action

Let’s create an action in the store:

Get hands-on with 1200+ tech skills courses.