mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix: tracking a subfield should track its parents, as changing these can change it
This commit is contained in:
parent
2db3e4f4d8
commit
d42163d888
1 changed files with 2 additions and 1 deletions
|
@ -151,11 +151,12 @@ where
|
|||
|
||||
impl<Inner, Prev, T> Track for Subfield<Inner, Prev, T>
|
||||
where
|
||||
Inner: StoreField<Value = Prev> + 'static,
|
||||
Inner: StoreField<Value = Prev> + Track + 'static,
|
||||
Prev: 'static,
|
||||
T: 'static,
|
||||
{
|
||||
fn track(&self) {
|
||||
self.inner.track();
|
||||
let trigger = self.get_trigger(self.path().into_iter().collect());
|
||||
trigger.track();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue