mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-03-13 01:09:48 -04:00
fixed get untracked warning in use_storage
This commit is contained in:
parent
7f1ddd23ea
commit
fd03c47e8b
1 changed files with 2 additions and 2 deletions
|
@ -187,7 +187,7 @@ where
|
|||
|
||||
let (data, set_data) = defaults.into_signal();
|
||||
|
||||
let raw_init = data.get();
|
||||
let raw_init = data.get_untracked();
|
||||
|
||||
cfg_if! { if #[cfg(feature = "ssr")] {
|
||||
let remove: Box<dyn CloneableFn> = Box::new(|| {});
|
||||
|
@ -301,7 +301,7 @@ where
|
|||
resume: resume_watch,
|
||||
..
|
||||
} = watch_pausable_with_options(
|
||||
move || data.get(),
|
||||
move || data.get(),
|
||||
move |data, _, _| write.clone()(data),
|
||||
WatchOptions::default().filter(filter),
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue