QueryUpdated class final Advanced

A query's state changed. Emitted for every QueryAction — fetch, success, error, invalidate, pause, and the rest — so this is the event a devtools panel or a persister keys its work off. TanStack Query calls this event updated.

Inheritance

Constructors

QueryUpdated(Query<Object?> query, QueryAction action)
Creates the event for query, carrying the action that changed it.
const

Properties

action → QueryAction
The transition that produced the query's new state. Sealed, so a listener can switch over it exhaustively.
final
hashCode → int
The hash code for this object.
no setterinherited
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