Per-client slot on a store's thunk extraArgument.

The fields are intentionally loose: sdk-store sits in the effects layer alongside sdk-request-middleware and sdk-logger, so it cannot depend on their types without crossing a module boundary. Each client narrows this to its own concrete shape at the point of use.

interface ClientSlot {
    clientId?: string;
    logger?: unknown;
    requestMiddleware?: readonly unknown[];
}

Properties

clientId?: string

Identifies which client instance owns this slot, so a second client can be detected before it silently shares the first one's cache slice.

logger?: unknown
requestMiddleware?: readonly unknown[]