chore: swap over router none

This commit is contained in:
Jonathan Kelley committed 2022-12-22 14:45:48 -05:00
1 parent 2fa3fe1fc0
commit 5a70c6ecf9
5 files changed
+27 -9

No files matched your search

+1 -1
View File
@@ -47,5 +47,5 @@ pub fn Redirect<'a>(cx: Scope<'a, RedirectProps<'a>>) -> Element {
router.replace_route(cx.props.to, None, None);
}
None
cx.render(rsx!(()))
}
+1 -1
View File
@@ -52,6 +52,6 @@ pub fn Route<'a>(cx: Scope<'a, RouteProps<'a>>) -> Element {
cx.render(rsx!(&cx.props.children))
} else {
log::debug!("Route should *not* render: {:?}", cx.scope_id());
None
cx.render(rsx!(()))
}
}