An observer unsubscribed from the query. Emitted after the observer has
been detached — and, when it was the last one, after the fetch in flight
has been told to stop retrying and the garbage-collection timer has been
started. TanStack Query calls this event observerRemoved.
- Inheritance
-
- Object
- QueryCacheEvent
- QueryObserverRemoved
Constructors
-
QueryObserverRemoved(Query<
Object?> query, QueryObserverRef observer) -
Creates the event for
queryand theobserverthat detached.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- observer → QueryObserverRef
-
The observer that detached. Read-only from outside.
final
-
query
→ Query<
Object?> -
The query the event is about. Typed as
Query<Object?>, since a cache listener sees every key; readdataTypeorget<T>it from the cache to recover the concrete type.finalinherited - 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