depreciate the render macro
This commit is contained in:
1 parent
90d0164b9e
commit
e65c5f0eb3
148 files changed
+459
-458
No files matched your search
@@ -22,7 +22,7 @@ impl Layout {
|
||||
.flat_map(|id| nests[id.0].dynamic_segments());
|
||||
|
||||
quote! {
|
||||
render! {
|
||||
rsx! {
|
||||
#comp_name { #(#dynamic_segments: #dynamic_segments,)* }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -612,7 +612,7 @@ impl RouteEnum {
|
||||
|
||||
fn call(&self, props: Self::Props) -> dioxus_core::Element {
|
||||
let initial_route = self.clone();
|
||||
render! {
|
||||
rsx! {
|
||||
::dioxus_router::prelude::Router::<#name> {
|
||||
config: move || props.take().initial_route(initial_route)
|
||||
}
|
||||
|
||||
@@ -247,7 +247,7 @@ impl Route {
|
||||
quote! {
|
||||
#[allow(unused)]
|
||||
(#last_index, Self::#name { #(#dynamic_segments,)* }) => {
|
||||
render! {
|
||||
rsx! {
|
||||
#component {
|
||||
#(#dynamic_segments_from_route: #dynamic_segments_from_route,)*
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user