# useSlot

```ts
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}`.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `slotKey` | `string` |
| `options` | [`ResolveSlotOptions`](/api/nitida/sdk/type-aliases/resolveslotoptions/) |

## Returns

[`SlotState`](/api/nitida/sdk/react/-internal-/type-aliases/slotstate/)