• Preparing search index...
  • The search index is not available
watchable.dev
  • watchable.dev
  • @watchable/store
  • createStorePartition

Function createStorePartition

  • createStorePartition<State, Key>(store, key, watchers?): Store<State[Key]>
  • Constructs a Store that tracks a child property of another store's RootState. See PartitionableState for more details.

    Type Parameters

    • State extends PartitionableState<Key>
    • Key extends string | number | symbol

    Parameters

    • store: Store<State>

      The parent store containing the partition

    • key: Key

      The child key to partition the parent's state.

    • Optional watchers: readonly Watcher<State[Key]>[]

      A list of Watchers to be notified once and permanently subscribed

    Returns Store<State[Key]>

    The partitioned store.

    • Defined in lib/partition.ts:57

Settings

Member Visibility

Theme

watchable.dev
  • Loading...

Generated using TypeDoc