Skip to content

Function: useHistory()

@roomful/react


@roomful/react / useHistory

useHistory<TPresence>(options?): UseHistoryResult

Defined in: react/src/index.ts:1581

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

TPresence extends PresenceData = PresenceData

The room presence shape.

HistoryOptions

Optional history configuration.

UseHistoryResult

The timeline, undo/redo availability, and history controls.