Error: Model is disposed!

See original GitHub issue

Component Code

MonacoEditor component file

const Editor = React.lazy(() =>
  import(/* webpackChunkName: "monaco-editor-c" */ 'react-monaco-editor'),
)

// changeCode: dispatch change action
// value: redux store value
<React.Suspense fallback={<Loading />}>
  <Editor value={value} onChange={changeCode} language="java" />
</React.Suspense>

multiple fetch same chunk file when I change value.

console gif

May-10-2019 19-06-37

console image

image

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rikeshpatelcommented, Oct 14, 2019

Experienced this while using multiple editor tags on the same page. Resolved by adding keys. <MonacoEditor key="description-editor" ... />

1reaction
LeeHao12commented, Jun 14, 2019

@jedmao I don’t know why crash. I reopen this issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Model is disposed! · Issue #54756 · microsoft/vscode - GitHub
Issue Id: 85b09ef8-f986-af05-d3ba-688a0d58cc29. Versions - 1.25.1. Stack Error: Model is disposed! /vs/editor/common/modes.ts#585:0 ...
Read more >
"Error: Model is disposed" when opening program - VEX Forum
Hello, I'm with team 95E and recently I went to competition with a code with an autonomous selector using the brain screen, autonomi,...
Read more >
Cannot access a disposed object - Visual Studio Feedback
If I create a new project and save it ine the Onedrive folder, I get the same error message: "Cannot access a disposed...
Read more >
What does the error mean: model is disposed - Wappler General
All of the sudden I get the following error: Write file: (file location) failed: Model is disposed! What does this mean and any...
Read more >
Unable to open 'Agda': AbstractContextKeyService has been ...
I'm trying to use agda-mode on visual studio code on windows 10. I'm getting this error on VSC when pressing ctrl-c ctrl-l (or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found