depreciate the render macro

This commit is contained in:
Evan Almloff committed 2024-01-16 13:18:46 -06:00
1 parent 90d0164b9e
commit e65c5f0eb3
148 files changed
+459 -458

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ impl Layout {
.flat_map(|id| nests[id.0].dynamic_segments());
quote! {
render! {
rsx! {
#comp_name { #(#dynamic_segments: #dynamic_segments,)* }
}
}
+1 -1
View File
@@ -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)
}
+1 -1
View File
@@ -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,)*
}