Bring back mroe hooks, remove old hooks, cleanup a number of examples
This commit is contained in:
33 files changed
+179
-643
No files matched your search
@@ -584,12 +584,12 @@ impl RouteEnum {
|
||||
}
|
||||
|
||||
quote! {
|
||||
impl dioxus_router::routable::Routable for #name where Self: Clone {
|
||||
const SITE_MAP: &'static [dioxus_router::routable::SiteMapSegment] = &[
|
||||
impl ::dioxus_router::routable::Routable for #name where Self: Clone {
|
||||
const SITE_MAP: &'static [::dioxus_router::routable::SiteMapSegment] = &[
|
||||
#(#site_map,)*
|
||||
];
|
||||
|
||||
fn render<'a>(&self, cx: &'a dioxus::prelude::ScopeState, level: usize) -> dioxus::prelude::Element {
|
||||
fn render(&self, level: usize) -> ::dioxus::prelude::Element {
|
||||
let myself = self.clone();
|
||||
match (level, myself) {
|
||||
#(#matches)*
|
||||
|
||||
Reference in new issue
Block a user