MCPcopy Create free account
hub / github.com/SplootCode/splootcode / cleanup

Method cleanup

packages/editor/src/context/editor_context.ts:98–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 }
97
98 cleanup() {
99 // Must be called before loading a new EditorState
100 this.runtimeContextManager.deregisterSelf()
101 this.validationWatcher.deregisterSelf()
102 this.autosaveWatcher.deregisterSelf()
103 this.undoWatcher.deregisterSelf()
104 }
105}
106
107export const EditorStateContext = React.createContext(null)

Callers 1

ProjectEditorFunction · 0.95

Calls 1

deregisterSelfMethod · 0.45

Tested by

no test coverage detected