monaco-react
monaco-react copied to clipboard
multiple views to the same model/path will broke the editor
Describe the bug If you have multiple editors with the same file path, that are not open at the same time. During the unmount lifecycle model that is used by the other editor will be disposed, and that would break the editor.
To Reproduce
Steps to reproduce the behavior:
- Go to https://codesandbox.io/s/bug-with-split-view-editor-z6xbyg?file=/src/App.js
- Switch between files
- Editor on unmount will break without any errors.