Function useLastPagination

Custom hook for managing pagination state and handling pagination logic.

  • Type Parameters

    • FilterData extends {} = any

      The type of filter data.

    • RowData extends IRowData = any

      The type of row data.

    Parameters

    • upperHandler: ListHandler<FilterData, RowData, any>

      The handler function responsible for fetching data.

    Returns IResult<any, any>

    • An object containing the handler function and the state data.