From 25c313aeb5355c2ebb2fb944b49f0b5b706f8eee Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Fri, 3 Feb 2023 11:03:02 -0500 Subject: [PATCH] fix: stack overflow in with nested outlet (closes #452) (#453) --- router/src/components/outlet.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/src/components/outlet.rs b/router/src/components/outlet.rs index a2f28a785..d48e63392 100644 --- a/router/src/components/outlet.rs +++ b/router/src/components/outlet.rs @@ -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))) } }