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())
|
/// 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")]
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)),
|
||||||
|
|
|
@ -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]
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue