Skip to content

Function: useHistory()

@roomful/vue


@roomful/vue / useHistory

useHistory<TPresence>(options?): UseHistoryResult

Defined in: vue/src/index.ts:1539

Subscribes to the collaborative history engine: a reactive shared timeline plus reactive canUndo/canRedo, with capture/transaction/undo/redo controls.

TPresence extends PresenceData = PresenceData

The room presence shape.

HistoryOptions

Optional history configuration.

UseHistoryResult

Readonly refs for the timeline and undo/redo availability plus controls.