Fix tests

This commit is contained in:
BakerNet 2024-10-08 21:56:25 -07:00
parent c6d22e19cb
commit 171bc334ff
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()) /// Some("Somehow get the value of the cookie header as a string".to_owned())
/// } /// }
/// #[cfg(not(feature = "ssr"))]
/// None
/// }) /// })
/// .ssr_set_cookie(|cookie: &Cookie| { /// .ssr_set_cookie(|cookie: &Cookie| {
/// #[cfg(feature = "ssr")] /// #[cfg(feature = "ssr")]

View file

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

View file

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

View file

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

View file

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