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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
slotKeys |
string[] |
options |
ResolveSlotOptions |
Returns
Section titled “Returns”{ error: Error | null; isLoading: boolean; resolutions: Record<string, AssetDTO>;}error: Error | null;isLoading
Section titled “isLoading”isLoading: boolean;resolutions
Section titled “resolutions”resolutions: Record<string, AssetDTO>;