mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 09:09:21 -05:00
Merge pull request #174 from BakerNet/update/leptos-0.7-gamma
Fix tests & formatting
This commit is contained in:
commit
31181c38d9
5 changed files with 6 additions and 8 deletions
|
@ -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")]
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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)),
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue