recycle vnode ids

This commit is contained in:
Evan Almloff committed 2023-09-11 16:25:32 -05:00
1 parent 589483d892
commit 73e0be9e65
2 files changed
+19

No files matched your search

+9
View File
@@ -89,6 +89,15 @@ impl VirtualDom {
id,
});
// Remove all VNode ids from the scope
for id in self.scopes[id.0]
.element_refs_to_drop
.borrow_mut()
.drain(..)
{
self.element_refs.try_remove(id.0);
}
self.ensure_drop_safety(id);
if recursive {