mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
fix: .refetch()
should not track any reads (closes #2221)
This commit is contained in:
parent
694e5f1cb3
commit
ea6c957f3d
1 changed files with 3 additions and 3 deletions
|
@ -8,8 +8,8 @@ use crate::{
|
||||||
signal_prelude::format_signal_warning, spawn::spawn_local,
|
signal_prelude::format_signal_warning, spawn::spawn_local,
|
||||||
suspense::LocalStatus, use_context, GlobalSuspenseContext, Memo,
|
suspense::LocalStatus, use_context, GlobalSuspenseContext, Memo,
|
||||||
ReadSignal, ScopeProperty, Signal, SignalDispose, SignalGet,
|
ReadSignal, ScopeProperty, Signal, SignalDispose, SignalGet,
|
||||||
SignalGetUntracked, SignalSet, SignalUpdate, SignalWith, SuspenseContext,
|
SignalGetUntracked, SignalSet, SignalUpdate, SignalWith,
|
||||||
WriteSignal,
|
SignalWithUntracked, SuspenseContext, WriteSignal,
|
||||||
};
|
};
|
||||||
use std::{
|
use std::{
|
||||||
any::Any,
|
any::Any,
|
||||||
|
@ -1358,7 +1358,7 @@ where
|
||||||
self.version.set(version);
|
self.version.set(version);
|
||||||
self.scheduled.set(false);
|
self.scheduled.set(false);
|
||||||
|
|
||||||
_ = self.source.try_with(|source| {
|
_ = self.source.try_with_untracked(|source| {
|
||||||
let fut = (self.fetcher)(source.clone());
|
let fut = (self.fetcher)(source.clone());
|
||||||
|
|
||||||
// `scheduled` is true for the rest of this code only
|
// `scheduled` is true for the rest of this code only
|
||||||
|
|
Loading…
Reference in a new issue