# CommentState

Canonical page: https://www.adaptabletools.com/docs/reference/commentstate

Comment threads for the current session.

This section is not persisted and is not part of Initial State. Load threads with `commentOptions.loadCommentThreads` and save them with `commentOptions.persistCommentThreads`.

```ts title="TypeScript"
export interface CommentState extends BaseState 
```

###### Extends

[`BaseState`](https://www.adaptabletools.com/docs/reference/basestate.md)

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [CommentThreads](https://www.adaptabletools.com/docs/reference/commentstate.md#commentthreads) | [`CommentThread`](https://www.adaptabletools.com/docs/reference/commentthread.md)`[]` | Comment threads for this session. Each thread belongs to one cell (`PrimaryKeyValue` and `ColumnId`) and holds its `Comments` in order. |

## Property Details

### CommentThreads

Comment threads for this session. Each thread belongs to one cell (`PrimaryKeyValue` and `ColumnId`) and holds its `Comments` in order.

```ts title="TypeScript"
CommentThreads?: CommentThread[];
```

###### Property Value

[`CommentThread`](https://www.adaptabletools.com/docs/reference/commentthread.md)`[]`
