We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b4ff7e commit 85cf76eCopy full SHA for 85cf76e
1 file changed
src/index.ts
@@ -26,7 +26,7 @@ export function mount(
26
): () => void {
27
const shadowResult: ShadowCache = new ShadowCache(false);
28
29
- return effect(() => {
+ const disconnect = effect(() => {
30
active.parentElement = parent;
31
32
reconcile({
@@ -37,6 +37,11 @@ export function mount(
37
getParentOverwrite: null,
38
});
39
40
+
41
+ return () => {
42
+ disconnect();
43
+ shadowResult.remove();
44
+ };
45
}
46
47
export function createComponent<
0 commit comments