-
Hey folks, I'm not sure what I'm doing wrong here but I have a basic Vue component I'm working on. It's supposed to be a lightweight editor with language support and a dropdown to change supported language. Whenever the user selects a new language from the deadline, it spins the CPU for 100%. Any idea what I'm doing wrong/missing to cause this? Thanks! Repo: https://github.com/tankbusta/monaco-vscode-hang/tree/main |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I'm not very familiar with vue, are you sure there is no infinite loop in your code? Btw, reusing the same model for multiple languages is kind of weird |
Beta Was this translation helpful? Give feedback.
I'm not familiar with vue; but the issue seems to come from vue creating proxy for refs
using
const editor = toRaw(unref(editorRef));
instead ofconst editor = unref(editorRef);
seems to fix the issue