AppleSauce
    Preparing search index...

    Function useObservablePickState

    • Creates an object composed of the picked state properties. Similar to lodash pick. Changes of any of these properties will trigger a rerendering. Errors are thrown on unreachable path.

      Type Parameters

      • TState
      • TKeys extends string | number | symbol
      • TInitial extends undefined | null | void

      Parameters

      Returns TInitial | { [K in string | number | symbol]: TState[K] }

    • Creates an object composed of the picked state properties. Similar to lodash pick. Changes of any of these properties will trigger a rerendering. Errors are thrown on unreachable path.

      Type Parameters

      • TState
      • TKeys extends string | number | symbol

      Parameters

      • state$: Observable<TState>

        Output state.

      • initialState:
            | { [K in string
            | number
            | symbol]: TState[K] }
            | (() => { [K in string | number | symbol]: TState[K] })
      • ...keys: TKeys[]

        keys of state

      Returns { [K in string | number | symbol]: TState[K] }