Merge pull request #107 from autarch/autarch/half-assed-router

A partial implementation of the router and associated bits
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2022-01-18 00:01:34 -05:00
commit 8d3ac3ff14
8 files changed
+204 -60

No files matched your search

+3 -6
View File
@@ -198,12 +198,9 @@ impl ScopeArena {
// run the hooks (which hold an &mut Reference)
// recursively call ensure_drop_safety on all children
items.borrowed_props.drain(..).for_each(|comp| {
let scope_id = comp
.scope
.get()
.expect("VComponents should be associated with a valid Scope");
self.ensure_drop_safety(scope_id);
if let Some(scope_id) = comp.scope.get() {
self.ensure_drop_safety(scope_id);
}
drop(comp.props.take());
});