module@warp-drive/experiments/pagination @experimental
Interface SharedPaginationContentFeatures<RT>
ts
interface SharedPaginationContentFeatures<RT> {
abort?: () => void;
isHidden: boolean;
isNavigating: boolean;
isOnline: boolean;
isRefreshing: boolean;
latestRequest?: Future<RT>;
refresh: () => Promise<void>;
reload: () => Promise<void>;
}The content features available in both pagination modes: the state and controls of the initial request.
Extended by
Type Parameters
RT
RT
Properties
abort?
ts
optional abort?: () => void;Returns
void
isHidden
ts
isHidden: boolean;isNavigating
ts
isNavigating: boolean;Whether a changed @request arg is currently resolving against the loaded collection — e.g. a route-driven navigation (browser back button). The existing content stays rendered while this is true; once the request resolves it either becomes the active page (same collection) or the component resets to the new collection.
isOnline
ts
isOnline: boolean;isRefreshing
ts
isRefreshing: boolean;latestRequest?
ts
optional latestRequest?: Future<RT>;refresh
ts
refresh: () => Promise<void>;Returns
Promise<void>
reload
ts
reload: () => Promise<void>;Returns
Promise<void>