• 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
  • @watchable
    • nevermore
      • BackoffOptions
      • CancelOptions
      • ConcurrencyOptions
      • JobFulfilment
      • JobRejection
      • PipeOptions
      • RateOptions
      • RetryOptions
      • TimeoutOptions
      • BackoffRetryOptions
      • Job
      • JobArgs
      • JobSettlement
      • NevermoreOptions
      • NothingFrom
      • Pipe
      • Strategy
      • StrategyFactory
      • createExecutorStrategy
      • createSettlementSequence
      • createStrategyFromOptions
      • sleep
    • queue
      • MessageQueue
      • Watcher
      • createQueue
    • store
      • Store
      • Watchable
      • Draft
      • Immutable
      • PartitionableState
      • RootState
      • Selector
      • Unwatch
      • Watcher
      • createStore
      • createStorePartition
    • store-edit
      • Editor
      • edit
    • store-follow
      • Controls
      • ExitStatus
      • Follower
      • QueueHandler
      • followSelector
      • withSelectorQueue
    • store-react
      • useRootState
      • useSelected
      • useStateProperty
      • useStore
    • unpromise
      • Unpromise
      • PromiseWithResolvers
      • ProxyPromise
      • SubscribedPromise
      • PromiseExecutor

Generated using TypeDoc