Per-page payload shape (e.g.
PaginatedResponse<TiltifyDonation, TiltifyPaginationMetadata>).
TanStack-shape paginated data envelope.
Most recent error thrown by the fetcher, or null.
Triggers fetching the next page; awaits the result.
Triggers fetching the previous page (Tiltify only — the Twitch
charity donations endpoint doesn't expose a reverse cursor). No-op
when hasPreviousPage is false.
false once the cursor returns no further page.
false once the reverse-cursor returns no further page. Twitch
charity donations never expose a before cursor, so this is
permanently false on the Twitch path.
true whenever any fetch is in flight (initial / refetch / next-page / prev-page).
true while a next-page fetch is in flight specifically.
true while a previous-page fetch is in flight specifically.
true from mount until first resolve / reject.
true while the query has neither resolved data nor a captured
error — i.e. we haven't checked/fetched yet. Passed through
directly from TanStack Query v5's isPending.
Manually refetch every page from the beginning. Defaults to
cancelling any in-flight request first (cancelRefetch: true); pass
{ cancelRefetch: false } to preserve an in-flight fetch (useful
for polling loops that don't want to interrupt a cursor walk).
Tier-specific return shape for useInfiniteDonations.
The data payload is TanStack's standard
{ pages, pageParams }shape; the rest match the standardUseFetchResultfields plus the pagination knobs (fetchNextPage,hasNextPage,isFetchingNextPage).