GitHub
  • Preparing search index...
  • The search index is not available
Documentation
  • Documentation
  • @forgerock/sdk-store
  • injectClient

Function injectClient

  • injectClient<S extends object = Record<string, unknown>>(
        handle: SdkStore,
        options: InjectClientOptions,
    ): SdkStoreHandle<S>

    Attaches a client to a store: mounts its reducers and middleware, and registers its private slot on the store's client registry.

    Safe to call more than once for the same client — RTK deduplicates reducer injection, and re-registering a slot simply overwrites it with equal values.

    Type Parameters

    • S extends object = Record<string, unknown>

    Parameters

    • handle: SdkStore
    • options: InjectClientOptions

    Returns SdkStoreHandle<S>

    Throws

    If handle is not a valid SDK store handle.

    • Defined in packages/sdk-effects/store/src/lib/store.effects.ts:100

Settings

Member Visibility
GitHub
Documentation
  • Loading...