> For the complete documentation index, see [llms.txt](https://docs.theopenpresenter.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.theopenpresenter.com/plugins/developing-a-plugin/viewer-state.md).

# Viewer State

When a viewer loads a plugin, it might take some time for the data to be loaded.

While the data is loading, we should show an indication to the user. Here's how it looks like on the sidebar:

<figure><img src="/files/iBmOHhGHRXVhr2hPW0M7" alt=""><figcaption></figcaption></figure>

How to:

```typescript
pluginApi.awareness.setAwarenessStateData({ isLoading: true });
```
