Skip to main content
Version: 0.43

Contexts

Contexts are objects that provide access to the current state of the application. They are used to access the current state of the application and to perform actions on it.

📄️ Page Context

contexts.pageContext is a data store scoped to the current page. Shesha creates one page context when a page opens, and everything on that page, the page's main form as well as any subforms, modal dialogs, form cells, or data list items rendered inside it, shares that same store. Use it to pass a value between forms on the same page without wiring up component-to-component bindings. When the user navigates away from the page, its page context and everything stored in it is cleared.