StateSnapshot
interfaceextends BaseMessage
Full state snapshot, sent in response to RequestState.
Contains the complete serialized state tree at a specific version.
Extensions use this to hydrate their local state representation or
to re-sync after reconnection. The
reducerNames array lists all
registered reducer slices for UI display.Properties
| Name | Type | Description |
|---|---|---|
reducerNames | string[] | List of reducer slice names. |
sourceId | string | UUID of the sender (store wrapper ID or extension ID). |
sourceRole | DevtoolsRole | Role of the sender. |
state | unknown | Serialized state tree, complete unless StateSnapshot.truncated says otherwise. |
storeId | string | |
timestamp | string | ISO 8601 timestamp of when the message was created. |
truncated? | boolean | true when the state was too large to send whole and parts were replaced by markers. |
truncationNote? | string | Explains what was dropped and why, for display alongside a truncated tree. |
type | "STATE_SNAPSHOT" | Discriminant field identifying the message type. |
version | number | Snapshot version matching the latest event's snapshotVersion. |