From 83f6984b0a0278a2ef624a6906d198763539a660 Mon Sep 17 00:00:00 2001 From: Adrian Wannenmacher Date: Tue, 13 Dec 2022 16:01:53 +0100 Subject: [PATCH] change empty outlet to placeholder instead of div --- packages/router/src/components/outlet.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/router/src/components/outlet.rs b/packages/router/src/components/outlet.rs index bddb11c46..b4aa47e58 100644 --- a/packages/router/src/components/outlet.rs +++ b/packages/router/src/components/outlet.rs @@ -108,8 +108,8 @@ pub fn Outlet(cx: Scope) -> Element { cx.render(match content { Some(content) => { let X = content.0; - rsx! { X { } } + rsx!(X {}) } - None => rsx! { div { } }, + None => rsx!(()), }) }