QueryObserverRemoved class final Advanced

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

Constructors

QueryObserverRemoved(Query<Object?> query, QueryObserverRef observer)
Creates the event for query and the observer that 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; read dataType or get<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