@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.js CHANGED
@@ -7929,7 +7929,7 @@ function SimpleTable({
7929
7929
  }, [onLoadChunk]);
7930
7930
  const rows = React52.useMemo(
7931
7931
  () => table.getRowModel().rows,
7932
- [paginationState, sorting, columnFilters, globalFilter]
7932
+ [paginationState, sorting, columnFilters, globalFilter, data]
7933
7933
  );
7934
7934
  const splittedRows = React52.useMemo(
7935
7935
  () => rows.slice(0, chunkCount),
@@ -7988,7 +7988,8 @@ function SimpleTable({
7988
7988
  }
7989
7989
  }, [virtualizationActive]);
7990
7990
  React52.useEffect(() => {
7991
- if (!virtualItems.length || !virtualizationActive || shouldUseCardView) return;
7991
+ if (!virtualItems.length || !virtualizationActive || shouldUseCardView)
7992
+ return;
7992
7993
  if (paddingBottom <= scrollLoadThreshold) {
7993
7994
  onLoadChunkRef.current();
7994
7995
  }