TimeTravel
interfaceextends BaseMessage
Time travel: jump a store to a specific state.
Sent by an extension to restore a store to a previously captured state.
The store calls its internal
__applyExternalState method, which replaces
the entire state tree and notifies all subscribers. This requires
replay capability on the store and
timeTravel on the extension.Properties
| Name | Type | Description |
|---|---|---|
snapshotVersion | number | Snapshot version being jumped to. |
sourceId | string | UUID of the sender (store wrapper ID or extension ID). |
sourceRole | DevtoolsRole | Role of the sender. |
state | unknown | Full state to apply via __applyExternalState. |
storeId | string | |
timestamp | string | ISO 8601 timestamp of when the message was created. |
type | "TIME_TRAVEL" | Discriminant field identifying the message type. |