Results topic
What an observer reports: a sealed QueryResult (QueryPending, QuerySuccess or QueryError) with the fetch state (isFetching, isStale, failureCount, ...) on every variant. Switch over it; the data needs no !.
Classes
-
QueryError<
TData> Results - The last fetch failed after its retries, with error.
-
QueryPending<
TData> Results - The query has nothing to show: no data and no error.
-
QueryResult<
TData> Results - The result of observing one query: what it holds, and what it is doing.
-
QuerySuccess<
TData> Results - The query holds data — fetched, seeded, written by hand, or a placeholder — in data.
Typedefs
-
QueryRefetch<
TData> = Future< QueryResult< Function({bool cancelRefetch}) ResultsTData> > - Refetches the query behind a result.