Skip to main content

Hooks

  • getGlobalState() — Gets GlobalState instance from the context.
  • getSsrContext() — Gets SsrContext object (the server-side rendering context, which is used to pass global-state-related data between rendering iterations).
  • useAsyncCollection() — Resolves and stores at the given path of global state elements of an asynchronous data collection.
  • useAsyncData() — Resolves asynchronous data, and stores them at the given path of global state.
  • useGlobalState() — The primary hook for interacting with the global state, modeled after the standard React's useState().