@mvn-ui/react 0.1.5 → 0.1.6

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.
package/dist/index.mjs CHANGED
@@ -7880,7 +7880,7 @@ function SimpleTable({
7880
7880
  }, [onLoadChunk]);
7881
7881
  const rows = useMemo(
7882
7882
  () => table.getRowModel().rows,
7883
- [paginationState, sorting, columnFilters, globalFilter]
7883
+ [paginationState, sorting, columnFilters, globalFilter, data]
7884
7884
  );
7885
7885
  const splittedRows = useMemo(
7886
7886
  () => rows.slice(0, chunkCount),
@@ -7939,7 +7939,8 @@ function SimpleTable({
7939
7939
  }
7940
7940
  }, [virtualizationActive]);
7941
7941
  useEffect(() => {
7942
- if (!virtualItems.length || !virtualizationActive || shouldUseCardView) return;
7942
+ if (!virtualItems.length || !virtualizationActive || shouldUseCardView)
7943
+ return;
7943
7944
  if (paddingBottom <= scrollLoadThreshold) {
7944
7945
  onLoadChunkRef.current();
7945
7946
  }