# useSlots

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

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

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

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

## Returns

```ts
{
  error: Error | null;
  isLoading: boolean;
  resolutions: Record<string, SlotResolution>;
}
```

### error

```ts
error: Error | null;
```

### isLoading

```ts
isLoading: boolean;
```

### resolutions

```ts
resolutions: Record<string, SlotResolution>;
```