@mantlebee/ts-data
    Preparing search index...

    Type Alias PaginationExtensionOptions<TItem>

    Options of a PaginationExtension.

    type PaginationExtensionOptions<TItem = Any> = {
        resetPageOnQueryChange?: boolean | List<keyof DataSourcePayload<TItem>>;
    }

    Type Parameters

    • TItem = Any

      Type of the items.

    Index
    resetPageOnQueryChange?: boolean | List<keyof DataSourcePayload<TItem>>

    Goes back to the first page when the query built by the previous extensions differs from the one of the previous read, so the page keeps pointing at the items the user is browsing: a different set of filters (or a different sort) makes "page 3" meaningless. Compared by hash, so a filter removed and added back is not a change.

    • true (default): every property of the payload except pagination.
    • false: never.
    • a list of payload properties: only those, e.g. ["filters"].