A query left the cache: it was garbage-collected after its gcTime
without observers, or removed through QueryClient.removeQueries,
QueryCache.remove or QueryCache.clear. TanStack Query calls this
event removed.
- Inheritance
-
- Object
- QueryCacheEvent
- QueryRemoved
Constructors
-
QueryRemoved(Query<
Object?> query) -
Creates the event for
query.const
Properties
- 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; 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