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.
component.destroy
$destroy
1 parent e073caf commit 04ec7a7Copy full SHA for 04ec7a7
packages/repl/src/lib/workers/bundler/index.ts
@@ -541,7 +541,7 @@ async function bundle(
541
return new component(options);
542
}
543
export function unmount(component) {
544
- component.$destroy();
+ component.${svelte.VERSION.split('.')[0] < '3' ? 'destroy' : '$destroy'}();
545
styles.forEach(style => style.remove());
546
547
export function untrack(fn) {
0 commit comments