Interface: StateError
One rejected write, reported per component id.
set stays fire-and-forget: it merges many ids at once, and on the iframe surface the host is a different document, so there is no return value that could carry a per-id outcome back. Rejections are therefore reported — to onError on the SDK surface, as a ridge:error message on the iframe one — which gives both surfaces the same channel and lets a write be partially accepted without inventing a result type that only one of them could deliver.
Properties
| Property | Type | Description |
|---|---|---|
code | StateErrorCode | - |
id | string | The component id whose write was rejected. |
message | string | Human-readable, already prefixed [Ridge AI]. For logs and dev tooling. |