MCPcopy Create free account
hub / github.com/uiwjs/react-codemirror / onUpdate

Method onUpdate

core/src/index.tsx:62–62  ·  view source on GitHub ↗

Fired whenever any state change occurs within the editor, including non-document changes like lint results.

(viewUpdate: ViewUpdate)

Source from the content-addressed store, hash-verified

60 onStatistics?(data: Statistics): void;
61 /** Fired whenever any state change occurs within the editor, including non-document changes like lint results. */
62 onUpdate?(viewUpdate: ViewUpdate): void;
63 /** The first time the editor executes the event. */
64 onCreateEditor?(view: EditorView, state: EditorState): void;
65 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected