Skip to content

useSlot

function useSlot(slotKey, options?): SlotState;

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

Subscribe to a single slot. Re-resolves when the key changes or the cache is invalidated. Returns {resolution, url, isLoading, error}.

Parameter Type
slotKey string
options ResolveSlotOptions

SlotState