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,
|
||||
},
|
||||
traits::{
|
||||
DefinedAt, IsDisposed, ReadUntracked, Track, Trigger, UntrackableGuard,
|
||||
DefinedAt, IsDisposed, Notify, ReadUntracked, Track, UntrackableGuard,
|
||||
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
|
||||
Self: Clone,
|
||||
for<'a> &'a T: IntoIterator,
|
||||
|
@ -287,9 +287,9 @@ where
|
|||
Prev: '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());
|
||||
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
|
||||
K: Debug + Send + Sync + PartialEq + Eq + Hash + 'static,
|
||||
KeyedSubfield<Inner, Prev, K, T>: Clone,
|
||||
|
@ -552,9 +552,9 @@ where
|
|||
T: IndexMut<usize>,
|
||||
T::Output: Sized,
|
||||
{
|
||||
fn trigger(&self) {
|
||||
fn notify(&self) {
|
||||
let trigger = self.get_trigger(self.path().into_iter().collect());
|
||||
trigger.trigger();
|
||||
trigger.notify();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -631,6 +631,7 @@ where
|
|||
.inner
|
||||
.keys()
|
||||
.expect("updating keys on a store with no keys");
|
||||
|
||||
keys.with_field_keys(
|
||||
inner_path,
|
||||
|keys| {
|
||||
|
|
|
@ -10,7 +10,7 @@ use reactive_graph::{
|
|||
ArcTrigger,
|
||||
},
|
||||
traits::{
|
||||
DefinedAt, IsDisposed, ReadUntracked, Track, Trigger, UntrackableGuard,
|
||||
DefinedAt, IsDisposed, Notify, ReadUntracked, Track, UntrackableGuard,
|
||||
Writeable,
|
||||
},
|
||||
unwrap_signal,
|
||||
|
@ -238,13 +238,13 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl<T, S> Trigger for Then<T, S>
|
||||
impl<T, S> Notify for Then<T, S>
|
||||
where
|
||||
S: StoreField,
|
||||
{
|
||||
fn trigger(&self) {
|
||||
fn notify(&self) {
|
||||
let trigger = self.get_trigger(self.path().into_iter().collect());
|
||||
trigger.trigger();
|
||||
trigger.notify();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue