Function createStorePartition

  • Constructs a Store that tracks a child property of another store's RootState. See PartitionableState for more details.

    Type Parameters

    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<Immutable<State[Key]>>[]

      A list of Watchers to be notified once and permanently subscribed

    Returns Store<State[Key]>

    The partitioned store.

Generated using TypeDoc