diff --git a/packages/router-macro/src/lib.rs b/packages/router-macro/src/lib.rs index 48fe89472..f3c5ba8b0 100644 --- a/packages/router-macro/src/lib.rs +++ b/packages/router-macro/src/lib.rs @@ -484,7 +484,7 @@ impl RouteEnum { #(#site_map,)* ]; - fn render<'a>(&self, cx: &'a ScopeState, level: usize) -> Element<'a> { + fn render<'a>(&self, cx: &'a dioxus::prelude::ScopeState, level: usize) -> dioxus::prelude::Element<'a> { let myself = self.clone(); match (level, myself) { #(#matches)*