MCPcopy
hub / github.com/pascalorg/editor / dispose

Function dispose

packages/core/src/services/drag-session.ts:139–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 },
138
139 dispose() {
140 if (active && ctx != null) {
141 action.cancel(ctx, scene)
142 scene.restoreAll()
143 // Silent terminate: no onCancel. The caller (e.g. useDragAction's
144 // effect cleanup) is reacting to the parent unmounting and would
145 // loop the state machine if onCancel re-set the parent's state.
146 active = false
147 ctx = null
148 draft = null
149 dirtyMarked = new Set()
150 scene.resumeHistory()
151 }
152 },
153 }
154}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…