chore: convert to logs
This commit is contained in:
1 parent
d4b6bb8a7b
commit
79e786aca5
2 files changed
+6
-4
No files matched your search
@@ -45,13 +45,13 @@ pub fn Route<'a>(cx: Scope<'a, RouteProps<'a>>) -> Element {
|
||||
router_root.register_total_route(route_context.total_route, cx.scope_id());
|
||||
});
|
||||
|
||||
println!("Checking Route: {:?}", cx.props.to);
|
||||
log::debug!("Checking Route: {:?}", cx.props.to);
|
||||
|
||||
if router_root.should_render(cx.scope_id()) {
|
||||
println!("Route should render: {:?}", cx.scope_id());
|
||||
log::debug!("Route should render: {:?}", cx.scope_id());
|
||||
cx.render(rsx!(&cx.props.children))
|
||||
} else {
|
||||
println!("Route should *not* render: {:?}", cx.scope_id());
|
||||
log::debug!("Route should *not* render: {:?}", cx.scope_id());
|
||||
cx.render(rsx!(()))
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user