# Type Alias: NablaConnectStateReason

> **NablaConnectStateReason** = `"COMMAND"` | `"NOTE_GENERATION_FAILED"`

Why a state was published.

## Remarks[​](#remarks "Direct link to Remarks")

* `COMMAND`: the change followed a command you sent.
* `NOTE_GENERATION_FAILED`: the note generation failed. See [NablaConnectState.failureReason](/connect/sdk/reference/type-aliases/NablaConnectState.md#failurereason).

`null` in [NablaConnectState.reason](/connect/sdk/reference/type-aliases/NablaConnectState.md#reason) when the change came from the iframe or the provider.
