fetchPreviousPage method
Fetches and prepends the previous page when available.
Implementation
Future<InfiniteQueryResult<TPage, TPageParam>> fetchPreviousPage({
bool cancelRefetch = true,
}) async {
try {
await client
.query(options.queryOptions)
.fetch(
cancelRefetch: cancelRefetch,
meta: const QueryFetchMeta(kind: 'infinite.backward'),
);
} on Object {
// Result exposes the failure without losing prior pages.
}
return current;
}