@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.
@@ -1486,12 +1486,10 @@ const Ordering = {
1486
1486
  };
1487
1487
 
1488
1488
  //
1489
- const defaultPageCount = -1;
1490
1489
  const defaultPageIndex = 0;
1491
1490
  const defaultPageSize = 10;
1492
1491
 
1493
1492
  const getDefaultPaginationState = () => ({
1494
- pageCount: defaultPageCount,
1495
1493
  pageIndex: defaultPageIndex,
1496
1494
  pageSize: defaultPageSize
1497
1495
  });
@@ -1572,7 +1570,9 @@ const Pagination = {
1572
1570
  });
1573
1571
  },
1574
1572
  setPageCount: updater => instance.setPagination(old => {
1575
- let newPageCount = functionalUpdate(updater, old.pageCount);
1573
+ var _old$pageCount;
1574
+
1575
+ let newPageCount = functionalUpdate(updater, (_old$pageCount = old.pageCount) != null ? _old$pageCount : -1);
1576
1576
 
1577
1577
  if (typeof newPageCount === 'number') {
1578
1578
  newPageCount = Math.max(-1, newPageCount);
@@ -1640,7 +1640,7 @@ const Pagination = {
1640
1640
  pageCount
1641
1641
  } = instance.getState().pagination;
1642
1642
 
1643
- if (pageCount > 0) {
1643
+ if (typeof pageCount !== 'undefined') {
1644
1644
  return pageCount;
1645
1645
  }
1646
1646