Skip to content
scroll to zoom · drag to pan

useSlot

function useSlot(slotKey, options?): SlotState;

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

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