mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
chore: clean up Trigger <> Notify rename
This commit is contained in:
parent
3646bf31b0
commit
f3f685c923
2 changed files with 12 additions and 11 deletions
|
@ -9,7 +9,7 @@ use reactive_graph::{
|
||||||
ArcTrigger,
|
ArcTrigger,
|
||||||
},
|
},
|
||||||
traits::{
|
traits::{
|
||||||
DefinedAt, IsDisposed, ReadUntracked, Track, Trigger, UntrackableGuard,
|
DefinedAt, IsDisposed, Notify, ReadUntracked, Track, UntrackableGuard,
|
||||||
Writeable,
|
Writeable,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -279,7 +279,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<Inner, Prev, K, T> Trigger for KeyedSubfield<Inner, Prev, K, T>
|
impl<Inner, Prev, K, T> Notify for KeyedSubfield<Inner, Prev, K, T>
|
||||||
where
|
where
|
||||||
Self: Clone,
|
Self: Clone,
|
||||||
for<'a> &'a T: IntoIterator,
|
for<'a> &'a T: IntoIterator,
|
||||||
|
@ -287,9 +287,9 @@ where
|
||||||
Prev: 'static,
|
Prev: 'static,
|
||||||
K: Debug + Send + Sync + PartialEq + Eq + Hash + 'static,
|
K: Debug + Send + Sync + PartialEq + Eq + Hash + 'static,
|
||||||
{
|
{
|
||||||
fn trigger(&self) {
|
fn notify(&self) {
|
||||||
let trigger = self.get_trigger(self.path().into_iter().collect());
|
let trigger = self.get_trigger(self.path().into_iter().collect());
|
||||||
trigger.trigger();
|
trigger.notify();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -542,7 +542,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<Inner, Prev, K, T> Trigger for AtKeyed<Inner, Prev, K, T>
|
impl<Inner, Prev, K, T> Notify for AtKeyed<Inner, Prev, K, T>
|
||||||
where
|
where
|
||||||
K: Debug + Send + Sync + PartialEq + Eq + Hash + 'static,
|
K: Debug + Send + Sync + PartialEq + Eq + Hash + 'static,
|
||||||
KeyedSubfield<Inner, Prev, K, T>: Clone,
|
KeyedSubfield<Inner, Prev, K, T>: Clone,
|
||||||
|
@ -552,9 +552,9 @@ where
|
||||||
T: IndexMut<usize>,
|
T: IndexMut<usize>,
|
||||||
T::Output: Sized,
|
T::Output: Sized,
|
||||||
{
|
{
|
||||||
fn trigger(&self) {
|
fn notify(&self) {
|
||||||
let trigger = self.get_trigger(self.path().into_iter().collect());
|
let trigger = self.get_trigger(self.path().into_iter().collect());
|
||||||
trigger.trigger();
|
trigger.notify();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -631,6 +631,7 @@ where
|
||||||
.inner
|
.inner
|
||||||
.keys()
|
.keys()
|
||||||
.expect("updating keys on a store with no keys");
|
.expect("updating keys on a store with no keys");
|
||||||
|
|
||||||
keys.with_field_keys(
|
keys.with_field_keys(
|
||||||
inner_path,
|
inner_path,
|
||||||
|keys| {
|
|keys| {
|
||||||
|
|
|
@ -10,7 +10,7 @@ use reactive_graph::{
|
||||||
ArcTrigger,
|
ArcTrigger,
|
||||||
},
|
},
|
||||||
traits::{
|
traits::{
|
||||||
DefinedAt, IsDisposed, ReadUntracked, Track, Trigger, UntrackableGuard,
|
DefinedAt, IsDisposed, Notify, ReadUntracked, Track, UntrackableGuard,
|
||||||
Writeable,
|
Writeable,
|
||||||
},
|
},
|
||||||
unwrap_signal,
|
unwrap_signal,
|
||||||
|
@ -238,13 +238,13 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T, S> Trigger for Then<T, S>
|
impl<T, S> Notify for Then<T, S>
|
||||||
where
|
where
|
||||||
S: StoreField,
|
S: StoreField,
|
||||||
{
|
{
|
||||||
fn trigger(&self) {
|
fn notify(&self) {
|
||||||
let trigger = self.get_trigger(self.path().into_iter().collect());
|
let trigger = self.get_trigger(self.path().into_iter().collect());
|
||||||
trigger.trigger();
|
trigger.notify();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue