We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e7b45 commit ee74f54Copy full SHA for ee74f54
src/components/CodeEditor/CodeEditor.tsx
@@ -237,7 +237,7 @@ const CodeEditor: React.FC<CodeEditorInterface> & CodeEditorComposition = React.
237
if (!validatorSchema) {
238
return
239
}
240
- configureMonacoYaml(monaco, {
+ const config= configureMonacoYaml(monaco, {
241
enableSchemaRequest: true,
242
isKubernetes,
243
schemas: [
@@ -248,6 +248,9 @@ const CodeEditor: React.FC<CodeEditorInterface> & CodeEditorComposition = React.
248
},
249
],
250
})
251
+ return ()=>{
252
+ config.dispose()
253
+ }
254
// eslint-disable-next-line react-hooks/exhaustive-deps
255
}, [validatorSchema, chartVersion])
256
useEffect(() => {
0 commit comments