mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 09:09:21 -05:00
Merge pull request #165 from Baptistemontan/fix_imports
This commit is contained in:
commit
69df445ef8
55 changed files with 78 additions and 78 deletions
|
@ -1,7 +1,7 @@
|
|||
use crate::{UseDocument, UseWindow};
|
||||
use cfg_if::cfg_if;
|
||||
use leptos::html::{CreateElement, ElementType};
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use send_wrapper::SendWrapper;
|
||||
use std::marker::PhantomData;
|
||||
|
|
|
@ -2,7 +2,7 @@ use crate::core::ElementMaybeSignal;
|
|||
use crate::{UseDocument, UseWindow};
|
||||
use cfg_if::cfg_if;
|
||||
use leptos::html::ElementType;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use send_wrapper::SendWrapper;
|
||||
use std::marker::PhantomData;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use crate::math::shared::use_simple_math;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use num::Float;
|
||||
use paste::paste;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use crate::math::shared::use_binary_logic;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use paste::paste;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use crate::math::shared::use_simple_math;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use num::Float;
|
||||
use paste::paste;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use crate::math::shared::use_simple_math;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use num::Float;
|
||||
use paste::paste;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use crate::math::shared::use_partial_cmp;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use std::cmp::Ordering;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use crate::math::shared::use_partial_cmp;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use std::cmp::Ordering;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
|
||||
/// Reactive `NOT` condition.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use crate::math::shared::use_binary_logic;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use paste::paste;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use crate::math::shared::use_simple_math;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use num::Float;
|
||||
use paste::paste;
|
||||
|
|
|
@ -114,7 +114,6 @@ where
|
|||
|
||||
#[cfg(not(feature = "ssr"))]
|
||||
{
|
||||
use leptos::prelude::diagnostics::SpecialNonReactiveZone;
|
||||
let OnClickOutsideOptions {
|
||||
ignore,
|
||||
capture,
|
||||
|
@ -183,7 +182,7 @@ where
|
|||
}
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
handler(event.into());
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::utils::signal_filtered;
|
||||
use crate::{use_debounce_fn_with_options, DebounceOptions};
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use paste::paste;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::utils::signal_filtered;
|
||||
use crate::{use_throttle_fn_with_options, ThrottleOptions};
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use paste::paste;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use super::{use_storage_with_options, StorageType, UseStorageOptions};
|
||||
use codee::{Decoder, Encoder};
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
|
||||
#[allow(rustdoc::bare_urls)]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use crate::{core::MaybeRwSignal, storage::StorageType, utils::FilterOptions};
|
||||
use codee::{CodecError, Decoder, Encoder};
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use std::sync::Arc;
|
||||
use thiserror::Error;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
use crate::{use_document, use_event_listener_with_options, use_window, UseEventListenerOptions};
|
||||
use leptos::ev::{blur, focus};
|
||||
use leptos::html::{AnyElement, ToHtmlElement};
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
|
||||
/// Reactive `document.activeElement`
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::{use_media_query, use_window};
|
||||
use leptos::logging::error;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use paste::paste;
|
||||
use std::collections::HashMap;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use crate::{js, js_fut, use_event_listener, use_supported, UseTimeoutFnReturn};
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::ev::{copy, cut};
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
|
||||
/// Reactive [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API).
|
||||
|
|
|
@ -8,7 +8,7 @@ use crate::{
|
|||
};
|
||||
use codee::string::FromToStringCodec;
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use std::fmt::{Display, Formatter};
|
||||
use std::marker::PhantomData;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use cfg_if::cfg_if;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
|
||||
/// Reactive [DeviceOrientationEvent](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent).
|
||||
/// Provide web developers with information from the physical orientation of
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
use crate::core::MaybeRwSignal;
|
||||
use cfg_if::cfg_if;
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use wasm_bindgen::{JsCast, JsValue};
|
||||
|
||||
/// Reactive [`mediaDevices.getDisplayMedia`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia) streaming.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
use crate::use_event_listener;
|
||||
use cfg_if::cfg_if;
|
||||
use leptos::ev::visibilitychange;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
|
||||
/// Reactively track `document.visibilityState`
|
||||
|
|
|
@ -2,8 +2,8 @@ use crate::core::{ElementMaybeSignal, MaybeRwSignal, PointerType, Position};
|
|||
use crate::{use_event_listener_with_options, use_window, UseEventListenerOptions, UseWindow};
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::ev::{pointerdown, pointermove, pointerup};
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use std::marker::PhantomData;
|
||||
use std::sync::Arc;
|
||||
use wasm_bindgen::JsCast;
|
||||
|
@ -137,7 +137,7 @@ where
|
|||
};
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
let zone = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let zone = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
if !on_start(UseDraggableCallbackArgs {
|
||||
position,
|
||||
|
@ -172,7 +172,7 @@ where
|
|||
set_position.set(position);
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
let zone = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let zone = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
on_move(UseDraggableCallbackArgs {
|
||||
position,
|
||||
|
@ -197,7 +197,7 @@ where
|
|||
set_start_position.set(None);
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
let zone = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let zone = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
on_end(UseDraggableCallbackArgs {
|
||||
position: position.get_untracked(),
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
use crate::core::ElementMaybeSignal;
|
||||
use cfg_if::cfg_if;
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use std::fmt::{Debug, Formatter};
|
||||
use std::sync::Arc;
|
||||
|
||||
|
@ -77,7 +77,6 @@ where
|
|||
|
||||
#[cfg(not(feature = "ssr"))]
|
||||
{
|
||||
use leptos::prelude::diagnostics::SpecialNonReactiveZone;
|
||||
let UseDropZoneOptions {
|
||||
on_drop,
|
||||
on_enter,
|
||||
|
@ -109,7 +108,7 @@ where
|
|||
update_files(&event);
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
on_enter(UseDropZoneEvent {
|
||||
files: files.get_untracked().into_iter().collect(),
|
||||
|
@ -122,7 +121,7 @@ where
|
|||
update_files(&event);
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
on_over(UseDropZoneEvent {
|
||||
files: files.get_untracked().into_iter().collect(),
|
||||
|
@ -140,7 +139,7 @@ where
|
|||
update_files(&event);
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
on_leave(UseDropZoneEvent {
|
||||
files: files.get_untracked().into_iter().collect(),
|
||||
|
@ -156,7 +155,7 @@ where
|
|||
update_files(&event);
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
on_drop(UseDropZoneEvent {
|
||||
files: files.get_untracked().into_iter().collect(),
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use crate::core::ElementMaybeSignal;
|
||||
use cfg_if::cfg_if;
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
|
||||
/// Reactive [bounding box](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect) of an HTML element
|
||||
|
|
|
@ -4,7 +4,7 @@ use cfg_if::cfg_if;
|
|||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::ev::{mouseenter, mouseleave};
|
||||
use leptos::leptos_dom::helpers::TimeoutHandle;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
|
||||
cfg_if! { if #[cfg(not(feature = "ssr"))] {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use crate::core::{ElementMaybeSignal, Size};
|
||||
use cfg_if::cfg_if;
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
|
||||
cfg_if! { if #[cfg(not(feature = "ssr"))] {
|
||||
|
|
|
@ -6,7 +6,7 @@ use std::marker::PhantomData;
|
|||
|
||||
#[cfg(not(feature = "ssr"))]
|
||||
use crate::{use_intersection_observer_with_options, UseIntersectionObserverOptions};
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
|
||||
/// Tracks the visibility of an element within the viewport.
|
||||
///
|
||||
|
|
|
@ -119,12 +119,11 @@ where
|
|||
|
||||
#[cfg(not(feature = "ssr"))]
|
||||
{
|
||||
use leptos::prelude::diagnostics::SpecialNonReactiveZone;
|
||||
use send_wrapper::SendWrapper;
|
||||
let event_name = event.name();
|
||||
let closure_js = Closure::wrap(Box::new(move |e| {
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
handler(e);
|
||||
}) as Box<dyn FnMut(_)>)
|
||||
|
|
|
@ -234,7 +234,7 @@ where
|
|||
);
|
||||
} else {
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
on_failed();
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
use crate::core::MaybeRwSignal;
|
||||
use cfg_if::cfg_if;
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use wasm_bindgen::JsCast;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use cfg_if::cfg_if;
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
|
||||
/// Reactive [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API).
|
||||
|
|
|
@ -3,7 +3,7 @@ use crate::filter_builder_methods;
|
|||
use crate::utils::{DebounceOptions, FilterOptions, ThrottleOptions};
|
||||
use cfg_if::cfg_if;
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
|
||||
///
|
||||
|
|
|
@ -6,7 +6,7 @@ use crate::{
|
|||
use default_struct_builder::DefaultBuilder;
|
||||
use futures_util::join;
|
||||
use gloo_timers::future::sleep;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use std::future::Future;
|
||||
use std::sync::Arc;
|
||||
|
@ -159,7 +159,8 @@ where
|
|||
let measure = measure.clone();
|
||||
leptos::spawn::spawn_local(async move {
|
||||
#[cfg(debug_assertions)]
|
||||
let zone = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let zone =
|
||||
leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
join!(
|
||||
on_load_more.with_value(|f| f(state)),
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use crate::core::{ElementMaybeSignal, ElementsMaybeSignal};
|
||||
use cfg_if::cfg_if;
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use std::marker::PhantomData;
|
||||
|
||||
|
@ -105,7 +105,7 @@ where
|
|||
let closure_js = Closure::<dyn FnMut(js_sys::Array, web_sys::IntersectionObserver)>::new(
|
||||
move |entries: js_sys::Array, observer| {
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
callback(
|
||||
entries
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use crate::utils::Pausable;
|
||||
use crate::{use_interval_fn_with_options, UseIntervalFnOptions};
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use std::rc::Rc;
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ where
|
|||
|
||||
move || {
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
callback();
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ use crate::js;
|
|||
use crate::utils::js_value_from_to_string;
|
||||
use cfg_if::cfg_if;
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use std::fmt::Display;
|
||||
use wasm_bindgen::{JsCast, JsValue};
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
use crate::use_event_listener;
|
||||
use cfg_if::cfg_if;
|
||||
use leptos::ev::change;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use std::cell::RefCell;
|
||||
use std::rc::Rc;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use crate::core::ElementsMaybeSignal;
|
||||
use cfg_if::cfg_if;
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
cfg_if! { if #[cfg(not(feature = "ssr"))] {
|
||||
|
@ -90,7 +90,7 @@ where
|
|||
let closure_js = Closure::<dyn FnMut(js_sys::Array, web_sys::MutationObserver)>::new(
|
||||
move |entries: js_sys::Array, observer| {
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
callback(
|
||||
entries
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use std::fmt::Display;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use crate::use_media_query;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use std::fmt::Display;
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ pub fn use_raf_fn_with_options(
|
|||
};
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
let zone = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let zone = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
callback(UseRafFnCallbackArgs { delta, timestamp });
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use crate::core::ElementsMaybeSignal;
|
||||
use cfg_if::cfg_if;
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
|
||||
cfg_if! { if #[cfg(not(feature = "ssr"))] {
|
||||
use crate::use_supported;
|
||||
|
@ -91,7 +91,7 @@ where
|
|||
let closure_js = Closure::<dyn FnMut(js_sys::Array, web_sys::ResizeObserver)>::new(
|
||||
move |entries: js_sys::Array, observer| {
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
callback(
|
||||
entries
|
||||
|
|
|
@ -2,7 +2,7 @@ use crate::core::{Direction, Directions, ElementMaybeSignal};
|
|||
use crate::UseEventListenerOptions;
|
||||
use cfg_if::cfg_if;
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use std::rc::Rc;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::actions::Action;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use leptos::reactive_graph::actions::Action;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use send_wrapper::SendWrapper;
|
||||
use std::sync::Arc;
|
||||
use wasm_bindgen::{prelude::Closure, JsCast, JsValue};
|
||||
|
@ -54,7 +54,7 @@ pub fn use_service_worker_with_options(
|
|||
let on_controller_change = options.on_controller_change.clone();
|
||||
let js_closure = Closure::wrap(Box::new(move |_event: JsValue| {
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
on_controller_change();
|
||||
}) as Box<dyn FnMut(JsValue)>)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use std::cmp::Ordering;
|
||||
use std::ops::DerefMut;
|
||||
|
|
|
@ -51,7 +51,6 @@ where
|
|||
#[cfg(not(feature = "ssr"))]
|
||||
{
|
||||
use leptos::leptos_dom::helpers::TimeoutHandle;
|
||||
use leptos::prelude::diagnostics::SpecialNonReactiveZone;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use std::time::Duration;
|
||||
|
||||
|
@ -94,7 +93,9 @@ where
|
|||
*timer.lock().unwrap() = None;
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = SpecialNonReactiveZone::enter();
|
||||
let _z =
|
||||
leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter(
|
||||
);
|
||||
|
||||
callback(arg);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ use crate::{
|
|||
use_interval_fn_with_options, use_raf_fn_with_options, UseIntervalFnOptions, UseRafFnOptions,
|
||||
};
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use leptos::prelude::*;
|
||||
use std::rc::Rc;
|
||||
|
||||
|
@ -87,7 +87,7 @@ pub fn use_timestamp_with_controls_and_options(options: UseTimestampOptions) ->
|
|||
update();
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
callback(ts.get_untracked());
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
use crate::{use_supported, use_window};
|
||||
use cfg_if::cfg_if;
|
||||
use default_struct_builder::DefaultBuilder;
|
||||
use leptos::prelude::{wrappers::read::Signal, *};
|
||||
use leptos::prelude::*;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
use std::rc::Rc;
|
||||
use wasm_bindgen::JsValue;
|
||||
|
||||
|
@ -75,7 +76,7 @@ pub fn use_web_notification_with_options(
|
|||
let on_click = Rc::clone(&options.on_click);
|
||||
move |e: web_sys::Event| {
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
on_click(e);
|
||||
}
|
||||
|
@ -86,7 +87,7 @@ pub fn use_web_notification_with_options(
|
|||
let on_close = Rc::clone(&options.on_close);
|
||||
move |e: web_sys::Event| {
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
on_close(e);
|
||||
}
|
||||
|
@ -97,7 +98,7 @@ pub fn use_web_notification_with_options(
|
|||
let on_error = Rc::clone(&options.on_error);
|
||||
move |e: web_sys::Event| {
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
on_error(e);
|
||||
}
|
||||
|
@ -108,7 +109,7 @@ pub fn use_web_notification_with_options(
|
|||
let on_show = Rc::clone(&options.on_show);
|
||||
move |e: web_sys::Event| {
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
on_show(e);
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ where
|
|||
let last_return_val = Arc::clone(&last_return_value);
|
||||
let invoke = move || {
|
||||
#[cfg(debug_assertions)]
|
||||
let zone = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let zone = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
let return_value = _invoke();
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ where
|
|||
let last_return_val = Arc::clone(&last_return_value);
|
||||
let invoke = move || {
|
||||
#[cfg(debug_assertions)]
|
||||
let zone = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let zone = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
let return_value = _invoke();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use leptos::prelude::wrappers::read::Signal;
|
||||
use leptos::reactive_graph::wrappers::read::Signal;
|
||||
|
||||
/// Pausable effect
|
||||
pub struct Pausable<PauseFn, ResumeFn>
|
||||
|
|
|
@ -111,7 +111,7 @@ where
|
|||
|
||||
move || {
|
||||
#[cfg(debug_assertions)]
|
||||
let _z = leptos::prelude::diagnostics::SpecialNonReactiveZone::enter();
|
||||
let _z = leptos::reactive_graph::diagnostics::SpecialNonReactiveZone::enter();
|
||||
|
||||
let ret = callback(
|
||||
cur_deps_value
|
||||
|
|
Loading…
Add table
Reference in a new issue