Options describing the client attaching itself to a store.

interface InjectClientOptions {
    api: { middleware: Middleware; reducer: Reducer; reducerPath: string };
    clientId?: string;
    logger?: unknown;
    reducerPath: string;
    requestMiddleware?: readonly unknown[];
    slices?: readonly { name: string; reducer: Reducer }[];
}

Properties

api: { middleware: Middleware; reducer: Reducer; reducerPath: string }

The client's RTK Query api. Its reducer and middleware are both mounted.

clientId?: string

Recorded on the slot so repeat injections can be distinguished.

logger?: unknown
reducerPath: string

Key for this client's slot on the registry. Normally api.reducerPath.

requestMiddleware?: readonly unknown[]
slices?: readonly { name: string; reducer: Reducer }[]

Additional slices the client owns, e.g. its config and node slices.