• Preparing search index...
  • The search index is not available
watchable.dev
  • watchable.dev
  • @watchable/store-follow
  • withSelectorQueue

Function withSelectorQueue

  • withSelectorQueue<State, Selected, Ending>(store, selector, handleQueue): Promise<Ending>
  • Configures a @watchable/queue!MessageQueue that will receive messages with every new value of a @watchable/store!Selector against a @watchable/store!Store. Passes the queue and the initial value from the Selector to handleQueue then waits for handleQueue to return, after which the queue is unsubscribed.

    Type Parameters

    • State extends unknown
    • Selected
    • Ending

    Parameters

    • store: Store<State>

      @watchable/store!Store to monitor

    • selector: Selector<State, Selected>

      a @watchable/store!Selector function to extract the selected value

    • handleQueue: QueueHandler<Selected, Ending>

      QueueHandler function passed the initial selected value and queue

    Returns Promise<Ending>

    the value returned by handleQueue

    • Defined in core.ts:18

Settings

Member Visibility

Theme

watchable.dev
  • Loading...

Generated using TypeDoc