Vizel API / core/src / createVizelEditorSubscription
Function: createVizelEditorSubscription()
ts
function createVizelEditorSubscription(options): () => void;Defined in: packages/core/src/controllers/editorSubscription.ts:39
Attach an editor event listener with a clean disposer.
Captures the editor reference at subscription time. If the editor is null/undefined when the function is called, the helper returns a no-op disposer without attaching anything. Framework adapters call this inside their effect primitive and pass the disposer as cleanup.
Parameters
| Parameter | Type |
|---|---|
options | VizelEditorSubscriptionOptions |
Returns
A disposer that detaches the listener.
() => void