@tanstack/svelte-table 8.0.0-alpha.69 → 8.0.0-alpha.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1487,12 +1487,10 @@ const Ordering = {
1487
1487
  };
1488
1488
 
1489
1489
  //
1490
- const defaultPageCount = -1;
1491
1490
  const defaultPageIndex = 0;
1492
1491
  const defaultPageSize = 10;
1493
1492
 
1494
1493
  const getDefaultPaginationState = () => ({
1495
- pageCount: defaultPageCount,
1496
1494
  pageIndex: defaultPageIndex,
1497
1495
  pageSize: defaultPageSize
1498
1496
  });
@@ -1573,7 +1571,9 @@ const Pagination = {
1573
1571
  });
1574
1572
  },
1575
1573
  setPageCount: updater => instance.setPagination(old => {
1576
- let newPageCount = functionalUpdate(updater, old.pageCount);
1574
+ var _old$pageCount;
1575
+
1576
+ let newPageCount = functionalUpdate(updater, (_old$pageCount = old.pageCount) != null ? _old$pageCount : -1);
1577
1577
 
1578
1578
  if (typeof newPageCount === 'number') {
1579
1579
  newPageCount = Math.max(-1, newPageCount);
@@ -1641,7 +1641,7 @@ const Pagination = {
1641
1641
  pageCount
1642
1642
  } = instance.getState().pagination;
1643
1643
 
1644
- if (pageCount > 0) {
1644
+ if (typeof pageCount !== 'undefined') {
1645
1645
  return pageCount;
1646
1646
  }
1647
1647