Add more trace messages to the RouterService code

I was trying to debug some issues with my routes and this additional tracing
was quite helpful.
This commit is contained in:
Dave Rolsky committed 2022-01-13 12:21:06 -06:00
1 parent d367e0f89f
commit 3a5b417ad1
2 files changed
+16 -2

No files matched your search

+1
View File
@@ -30,6 +30,7 @@ pub fn Route<'a>(cx: Scope<'a, RouteProps<'a>>) -> Element {
Some(ctx) => ctx.total_route.to_string(),
None => cx.props.to.to_string(),
};
log::trace!("total route for {} is {}", cx.props.to, total_route);
// provide our route context
let route_context = cx.provide_context(RouteContext {