Hierarchy

Methods

  • Get the name of the application

    Returns string

  • Get the currently logged in user

    Returns User

  • Get the current language

    Returns

    a two-letter language code, for example "en"

    Returns string

  • Subscribe to state changes

    Returns

    unsubscribe callback

    Parameters

    • callback: ((...args: unknown[]) => void)

      function to call when subscription updates

        • (...args: unknown[]): void
        • Parameters

          • Rest ...args: unknown[]

          Returns void

    • Optional options: StateOptions

      options for the state selector

    Returns (() => void)

      • (): void
      • Subscribe to state changes

        Returns

        unsubscribe callback

        Returns void