Skip to main content

App Wide State

Context

We solve the issue of app wide state by using ​Context.

Context

reactjs.org

Reacthas Documentationa tutorial for Context and the official documentation can be found at https://beta.reactjs.org/learn/passing-data-deeply-with-contexthere.


We currently use Context in Atlantis. One example of this is AuthContext. It currently stores user info that can be used across the app.

  • Example:

  • AuthContext