Fix memory leak
Destruct the CodeMirror instance when disconnectedCallback()
is called. This would only realistically affect users who are creating/destroying a lot of wc-codemirror components but it's still worth cleaning things up properly.
Destruct the CodeMirror instance when disconnectedCallback()
is called. This would only realistically affect users who are creating/destroying a lot of wc-codemirror components but it's still worth cleaning things up properly.