• Preparing search index...
  • The search index is not available
watchable.dev
  • watchable.dev
  • @watchable/store-react
  • useRootState

Function useRootState

  • useRootState<State>(store): State
  • A hook for tracking the @watchable/store!RootState of a @watchable/store!Store. Note, this forces a reload of the component when any part of the state tree changes. You probably want useSelected instead.

    Type Parameters

    • State extends unknown

    Parameters

    • store: Store<State>

      The @watchable/store!Store to track.

    Returns State

    • Defined in index.ts:112

Settings

Member Visibility

Theme

watchable.dev
  • Loading...

Generated using TypeDoc