1×
Become a member
to unlock all features

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

Create account
Autoplay

    Store Store in Local Storage

    reactReact
    ^16.0.0
    mobxMobX
    ^3.0.0

    For an optimal user and developer experience, storing state in local storage is often a must.

    In this lesson you will learn:

    • Using onSnapshot to get notified about new snapshots
    • Storing snapshots in local storage
    • Restore a state tree from local storage
    • Verifying whether a snapshot conforms to a model using Model.is(...)