Base service for letting a Lime web component subscribe to state changes

Hierarchy

Methods

Methods

  • Subscribe to state changes

    Returns

    unsubscribe callback

    Parameters

    • callback: (() => void)

      function to call when subscription updates

        • (): void
        • Returns void

    • Optional options: StateOptions

      options for the state selector

    Returns (() => void)

      • (): void
      • Subscribe to state changes

        Returns

        unsubscribe callback

        Returns void