fix: stack overflow in with nested outlet (closes #452) (#453)

This commit is contained in:
Greg Johnston 2023-02-03 11:03:02 -05:00 committed by GitHub
parent 0dbcc323ba
commit 25c313aeb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ pub fn Outlet(cx: Scope) -> impl IntoView {
prev_scope.dispose();
}
is_showing.set(Some((child.id(), child.cx())));
provide_context(child.cx(), child.clone());
provide_context(cx, child.clone());
set_outlet.set(Some(child.outlet(cx).into_view(cx)))
}
}