()
| 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 | |
| 107 | export const EditorStateContext = React.createContext(null) |
no test coverage detected