1×
Become a member
to unlock all features

Create an egghead account to access 5000+ tutorials and resources from expert developers.

Create account
Autoplay

    Defining Asynchronous Processes Using Flow

    reactReact
    ^16.0.0
    mobxMobX
    ^3.0.0

    In real life scenarios, many operations on our data are asynchronous. For example, because additional recourses need to get fetched. MST has first class support for asynchronous actions. We will start with a naively implemented async process, and work through async / await towards MST flows and generators.

    In this lesson, you will learn

    • That async process is painful if they need to respect the 'only actions can modify' semantics of MST
    • Flows are the idiomatic way to describe async processes in MST
    • Flows are robust; they make it possible to get full control over the lifecycle of a process