Hierarchy

Methods

  • 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