Vizel API / react/src / VizelEditorSnapshot
Interface: VizelEditorSnapshot
Defined in: packages/react/src/_reactivity.ts:47
Snapshot delivered to a useVizelEditorState selector on every re-evaluation.
The snapshot pairs the editor identity with the transaction that drove the most recent notification. transaction is null until the first transaction or selectionUpdate event fires — most commonly during the SSR pass and the first browser render before Tiptap has dispatched any transaction.
Properties
editor
ts
readonly editor: Editor | null;Defined in: packages/react/src/_reactivity.ts:49
The active editor instance, or null while it is still initializing.
transaction
ts
readonly transaction: Transaction | null;Defined in: packages/react/src/_reactivity.ts:51
The transaction that triggered the most recent re-evaluation, or null before the first event.