@dxos/react-client
    Preparing search index...

    Type Alias PaginationResult<T>

    type PaginationResult<T> = {
        atHead: boolean;
        getNext: () => void;
        getPrevious: () => void;
        hasMore: boolean;
        isLoading: boolean;
        items: T[];
        jumpToHead: () => void;
    }

    Type Parameters

    • T
    Index

    Properties

    atHead: boolean

    False once eviction has detached the window from the live head (i.e. skip > 0).

    getNext: () => void

    Extends toward older items by one page. Single-flight; no-op while loading or exhausted.

    getPrevious: () => void

    Extends back toward the head by one page (the inverse of getNext). Single-flight; no-op while loading or already at the head.

    hasMore: boolean

    Whether older items remain beyond what is currently loaded. Inferred from the last page's size.

    isLoading: boolean

    True until the current range delivers its first result, even an empty one.

    items: T[]

    Loaded window, in query order (newest first for Order.natural('desc')).

    jumpToHead: () => void

    Resets to the newest page and resumes live updates.