Remove cx in more places

This commit is contained in:
Jonathan Kelley committed 2024-01-13 21:18:36 -08:00
1 parent 1dde044697
commit 9881a94e67
10 files changed
+122 -127

No files matched your search

+2 -2
View File
@@ -4,7 +4,7 @@ use dioxus::prelude::*;
/// Used by the launch macro
#[doc(hidden)]
pub fn RouteWithCfg<R>(cx: Scope<FullstackRouterConfig<R>>) -> Element
pub fn RouteWithCfg<R>(props: FullstackRouterConfig<R>) -> Element
where
R: dioxus_router::prelude::Routable,
<R as std::str::FromStr>::Err: std::fmt::Display,
@@ -14,7 +14,7 @@ where
#[cfg(feature = "ssr")]
let context = crate::prelude::server_context();
let cfg = *cx.props;
let cfg = props;
render! {
dioxus_router::prelude::Router::<R> {
config: move || {