Merge pull request #174 from BakerNet/update/leptos-0.7-gamma

Fix tests & formatting
This commit is contained in:
Marc-Stefan Cassola 2024-10-09 11:25:02 +01:00 committed by GitHub
commit 31181c38d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 8 deletions

View file

@ -126,6 +126,8 @@ use std::sync::Arc;
/// {
/// Some("Somehow get the value of the cookie header as a string".to_owned())
/// }
/// #[cfg(not(feature = "ssr"))]
/// None
/// })
/// .ssr_set_cookie(|cookie: &Cookie| {
/// #[cfg(feature = "ssr")]

View file

@ -234,9 +234,7 @@ where
);
} else {
#[cfg(debug_assertions)]
let _z =
leptos::reactive::diagnostics::SpecialNonReactiveZone::enter(
);
let _z = leptos::reactive::diagnostics::SpecialNonReactiveZone::enter();
on_failed();
}

View file

@ -156,8 +156,7 @@ where
let measure = measure.clone();
leptos::task::spawn_local(async move {
#[cfg(debug_assertions)]
let zone =
leptos::reactive::diagnostics::SpecialNonReactiveZone::enter();
let zone = leptos::reactive::diagnostics::SpecialNonReactiveZone::enter();
join!(
on_load_more.with_value(|f| f(state)),

View file

@ -14,6 +14,7 @@ use std::sync::Arc;
/// ```
/// # use leptos::prelude::*;
/// # use leptos_use::use_prefers_reduced_motion;
/// # #[cfg(feature = "docs")]
/// # use leptos_use::docs::BooleanDisplay;
/// #
/// # #[component]

View file

@ -93,9 +93,7 @@ where
*timer.lock().unwrap() = None;
#[cfg(debug_assertions)]
let _z =
leptos::reactive::diagnostics::SpecialNonReactiveZone::enter(
);
let _z = leptos::reactive::diagnostics::SpecialNonReactiveZone::enter();
callback(arg);
}