Context data refers to the area of the application that the user is currently navigating.

NOTE: note that this is navigation-driven, do not associate places which present in the app screen that is not a direct consequence of user's navigation. e.g. the status bar is not a good area to be considered a context, the editor screen is because it means the user must have navigated to the editor screen from somewhere, for instance, the setup page.

Properties

Properties

isTransient: boolean = false

There are 2 types of context data: standard and transient

  1. standard context data represents an application context layer that would be pushed to the stack and the context will be popped as we leave the application, in other words, the context will be properly cleaned up e.g. when we go in an editor, we will push context data to the stack and pop it when we leave that editor
  2. transient context does not guarantee to be cleaned up properly, this corresponds to application areas whose presense is transient and not stable: such as those triggered by on-flight events, whose exit-state is hard to capture e.g. user focuses on an input

NOTE: transient context must not be mistakened as event, even in the example of user focusing on an input, that's an area of the application that we might want to get record of in terms of context. Events like a notification pop up, failure of some long-running processes are not considered application contexts