Interface: StateChangeMeta
@roomful/core / StateChangeMeta
Interface: StateChangeMeta
Section titled “Interface: StateChangeMeta”Defined in: packages/core/src/types.ts:971
Describes metadata attached to a shared-state change.
Properties
Section titled “Properties”changedBy
Section titled “changedBy”changedBy:
string
Defined in: packages/core/src/types.ts:982
Identifies the peer that produced the latest applied change.
pending
Section titled “pending”pending:
boolean
Defined in: packages/core/src/types.ts:992
Indicates whether the value is waiting to sync remotely.
queuedMutationCount
Section titled “queuedMutationCount”queuedMutationCount:
number
Defined in: packages/core/src/types.ts:997
Counts queued offline mutations still waiting to replay.
reason
Section titled “reason”reason:
"set"|"patch"|"undo"|"reset"
Defined in: packages/core/src/types.ts:977
Identifies the mutation that produced the change.
Non-exhaustive; new codes may be added in minor releases — handle a default case.
timestamp
Section titled “timestamp”timestamp:
number
Defined in: packages/core/src/types.ts:987
Records when the latest applied change occurred.