Rewrites how a fetch runs.
Infinite queries use it to turn one fetch into a loop over pages; nothing
else does, and application code never sets one. TanStack Query calls this
a QueryBehavior.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
onFetch(
FetchContext< TQueryData> context, Query<TQueryData> query) → void -
Called once per fetch, before the retryer is built, to rewrite
FetchContext.fetchFn — and read anything else the context carries — for
query. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited