Documentation / @finchart/react / HistoryPaging
Type Alias: HistoryPaging<T, C>
HistoryPaging<
T,C> = {fetch:HistoryFetch<T>;fetchPage?:never;next?:never; } | {fetch?:never;fetchPage:HistoryCursorFetch<T,C>;next:C|null; }
Defined in: react/src/hooks/use-infinite-history.ts:28
How a load pages back — handed to reset with the load's own bars, so the fetch is the one that knows this load (its symbol, its interval) and no other. By time: the fetch is asked for the page strictly before an x. By token: it is asked with next, then with each page's own next; a next of null says there is nothing older.
Type Parameters
T
T extends BaseDataPoint
C
C = never