Fix the router and stub out a number of crates to get compiling
This commit is contained in:
226 files changed
+1057
-1482
No files matched your search
@@ -589,7 +589,7 @@ impl RouteEnum {
|
||||
#(#site_map,)*
|
||||
];
|
||||
|
||||
fn render<'a>(&self, cx: &'a dioxus::prelude::ScopeState, level: usize) -> dioxus::prelude::Element<'a> {
|
||||
fn render<'a>(&self, cx: &'a dioxus::prelude::ScopeState, level: usize) -> dioxus::prelude::Element {
|
||||
let myself = self.clone();
|
||||
match (level, myself) {
|
||||
#(#matches)*
|
||||
|
||||
@@ -237,7 +237,7 @@ impl Route {
|
||||
quote! {
|
||||
#[allow(unused)]
|
||||
(#last_index.., Self::#name { #field_name, .. }) => {
|
||||
#field_name.render(cx, level - #last_index)
|
||||
#field_name.render(level - #last_index)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user