Skip to content

useSlots

function useSlots(slotKeys, options?): {
error: Error | null;
isLoading: boolean;
resolutions: Record<string, AssetDTO>;
};

Defined in: packages/sdk/src/react/index.ts:89

Bulk version — fetches N keys in one round-trip. Returns a map keyed by slot key. Pass a STABLE array reference (memoize with useMemo) to avoid re-fetches on every render.

Parameter Type
slotKeys string[]
options ResolveSlotOptions
{
error: Error | null;
isLoading: boolean;
resolutions: Record<string, AssetDTO>;
}
error: Error | null;
isLoading: boolean;
resolutions: Record<string, AssetDTO>;