• Resolves the calling client's own slot from a store's extraArgument.

    This runs on every request, so it never throws. An unrecognised or malformed extra yields the provided defaults (or an empty object) rather than an error — and, critically, never falls back to a store-wide value that would belong to a different client.

    When defaults are supplied, any slot key that is absent or undefined is filled in from defaults, letting callers express their fallback values once at the call site instead of with repeated ?? x expressions.

    Type Parameters

    • Slot extends object

    Parameters

    • extra: unknown

      The thunk extraArgument, as received from api.extra

    • reducerPath: string

      The calling api's reducerPath, used as the slot key

    • Optionaldefaults: Partial<Slot>

      Optional fallback values for missing or undefined slot fields

    Returns Slot

    The client's own slot merged with defaults, or just defaults / {} if no slot is registered