# isDraft

<!-- https://uncage.vercel.app/docs/api/react/functions/isdraft/ -->

```ts
function isDraft(s): boolean;
```

Defined in: react/src/state.ts:159

True when the composer targets a draft (no session yet) rather than the active session.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `s` | [`StoreState`](https://uncage.vercel.app/docs/api/react/interfaces/storestate.md) |

## Returns

`boolean`
