MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / handleUpdate

Function handleUpdate

frontend/src/hooks/useTextCounter.tsx:48–52  ·  view source on GitHub ↗
({ editor: currentEditor }: { editor: Editor })

Source from the content-addressed store, hash-verified

46 }
47
48 const handleUpdate = ({ editor: currentEditor }: { editor: Editor }) => {
49 if (currentEditor && !currentEditor.isDestroyed) {
50 handleTextChange(currentEditor)
51 }
52 }
53
54 editor.on('update', handleUpdate)
55

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected