Skip to content

Commit 1a90dc6

Browse files
committed
fix
1 parent a6ee20f commit 1a90dc6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/client/parts.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ export function create_child_part(
5353
controller._unmount_callbacks.length = 0
5454
}
5555
}
56+
if (!next) {
57+
// ensure nested updates that drop this renderable tear down cached parts before stale writes
58+
disconnect_root()
59+
}
5660
}
5761
current_renderable = next
5862
}

0 commit comments

Comments
 (0)