Skip to content

Commit 6c250c6

Browse files
committed
do not reset on_mount so that it can fire again if reinserted
1 parent 6685de3 commit 6c250c6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/runtime/internal/Component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ if (typeof HTMLElement === 'function') {
182182
const { on_mount } = this.$$;
183183

184184
this.$$.on_disconnect = on_mount.map(run).filter(is_function);
185-
this.$$.on_mount = [];
186185

187186
// @ts-ignore todo: improve typings
188187
for (const key in this.$$.slotted) {

0 commit comments

Comments
 (0)