When a user runs an app and interacts with it, it generates data that perhaps does not need to be stored or changed in a back-end service but needs to be available while the user is running the app.
Here are some examples of data a user likely would want throughout the app:
- Current user’s E-mail address.
- Current user’s settings, such as whether to have background music.
- Status, for example, the level they are at in the game.
- Current location.
Here are examples of data a user might want only for a particular page:
- Search terms for a search.
- Current page when paging through data records.
- Current time for a page with a stopwatch.
- Indicator of whether a field is disabled.