wip: fix router slashing

This commit is contained in:
Jonathan Kelley committed 2022-03-09 16:26:13 -05:00
1 parent e7505188d6
commit 0ce326566e
2 files changed
+15 -9

No files matched your search

+1
View File
@@ -54,6 +54,7 @@ pub fn Route<'a>(cx: Scope<'a, RouteProps<'a>>) -> Element {
});
log::debug!("Checking Route: {:?}", cx.props.to);
if router_root.should_render(cx.scope_id()) {
log::debug!("Route should render: {:?}", cx.scope_id());
cx.render(rsx!(&cx.props.children))