list of records
pagination count
Optional defaultOffset: numberdefault offset for pagination
paginated records, load more flag, load more function, reset offset function
const records = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
const { computedRecords, showLoadMore } = useLocalPagination(records, 6);
Paginate a list of records locally