TimeTravel

interface
messages.ts:270

extends 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

NameTypeDescription
snapshotVersionnumberSnapshot version being jumped to.
sourceIdstringUUID of the sender (store wrapper ID or extension ID).
sourceRoleDevtoolsRoleRole of the sender.
stateunknownFull state to apply via __applyExternalState.
storeIdstring
timestampstringISO 8601 timestamp of when the message was created.
type"TIME_TRAVEL"Discriminant field identifying the message type.