Store Store in Local Storage

Share this video with your friends

Send Tweet

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(...)
Kirk Ross
Kirk Ross
~ 7 years ago

For some reason, users is failing to load from localhost:3001/users. Is anyone else experiencing this?

Request URL: http://localhost:3001/users Referrer Policy: no-referrer-when-downgrade Provisional headers are shown Origin: http://localhost:3000 Referer: http://localhost:3000/ User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

Michel Weststrate
Michel Weststrate(instructor)
~ 6 years ago

You have to run yarn startdb (in a separate terminal) to start the local 'database' server