recycle vnode ids
This commit is contained in:
1 parent
589483d892
commit
73e0be9e65
2 files changed
+19
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user