Merge branch 'master' into jk/fix-liveview

This commit is contained in:
Jonathan Kelley 2022-12-15 14:26:36 -08:00
commit 44dde38c63

View file

@ -355,7 +355,11 @@ impl<'b> VirtualDom {
self.reclaim(id) self.reclaim(id)
} }
} }
Placeholder(t) => self.reclaim(t.id.take().unwrap()), Placeholder(t) => {
if let Some(id) = t.id.take() {
self.reclaim(id)
}
}
Fragment(nodes) => nodes.iter().for_each(|node| self.clean_up_node(node)), Fragment(nodes) => nodes.iter().for_each(|node| self.clean_up_node(node)),
}; };
} }