An observer subscribed to the mutation, which also cancels its pending
collection. TanStack Query calls this the observerAdded event.
- Inheritance
-
- Object
- MutationCacheEvent
- MutationObserverAdded
Constructors
-
MutationObserverAdded(Mutation<
Object?, Object?, Object?> mutation, MutationObserverRef observer) -
Creates the event announcing that
observerattached tomutation.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
mutation
→ Mutation<
Object?, Object?, Object?> -
The mutation the event is about, with its type arguments erased — a cache
listener sees every mutation there is.
finalinherited
- observer → MutationObserverRef
-
The observer that attached. Read-only from outside: an identity to hold
and compare, not something to drive.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited