type alias FetchPage

Passed to useLoadMore and usePagedList by a list's page or hook. It resolves to page page of the list, its items deserialized, as fetch with pageUrl and readPage gives it, and rejects when the page can't be had.

Type Parameters

Definition

(
page: number,
signal?: AbortSignal
) => Promise<PaginatedData<T>>

Usage

import { type FetchPage } from "src/hooks/feed/usePagedList.ts";