Skip to content

Interface: StateChangeMeta

@roomful/core


@roomful/core / StateChangeMeta

Defined in: packages/core/src/types.ts:971

Describes metadata attached to a shared-state change.

changedBy: string

Defined in: packages/core/src/types.ts:982

Identifies the peer that produced the latest applied change.


pending: boolean

Defined in: packages/core/src/types.ts:992

Indicates whether the value is waiting to sync remotely.


queuedMutationCount: number

Defined in: packages/core/src/types.ts:997

Counts queued offline mutations still waiting to replay.


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: number

Defined in: packages/core/src/types.ts:987

Records when the latest applied change occurred.