Untrack to avoid double-rendering <Outlet/>

This commit is contained in:
Greg Johnston 2022-11-24 22:22:27 -05:00
parent 498b5345d5
commit aaac1d37ac

View file

@ -9,7 +9,7 @@ pub fn Outlet(cx: Scope) -> Child {
(move || {
route.child().map(|child| {
provide_context(child.cx(), child.clone());
child.outlet()
cx.untrack(move || child.outlet())
})
})
.into_child(cx)