@economic/taco 2.67.1-footer-fix.1 → 2.67.1-footer-fix.3

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/taco.cjs CHANGED
@@ -35564,7 +35564,7 @@ function configureReactTableOptions(options, props, localization) {
35564
35564
  if (originalRow) {
35565
35565
  return String(originalRow[props.rowIdentityAccessor]);
35566
35566
  }
35567
- return `skeleton-${index2}-${Math.random().toString(36).substr(2, 9)}`;
35567
+ return String(index2);
35568
35568
  };
35569
35569
  }
35570
35570
  const tableOptions = {
@@ -37880,8 +37880,6 @@ function useTableRenderer(renderers, table, tableRef, length, defaultRowActiveIn
37880
37880
  });
37881
37881
  const expandedState = table.getState().expanded;
37882
37882
  const previousExpandedStateRef = React.useRef(false);
37883
- const sortingState = table.getState().sorting;
37884
- const previousSortingStateRef = React.useRef(JSON.stringify(sortingState));
37885
37883
  React.useEffect(() => {
37886
37884
  const isEmpty = JSON.stringify(expandedState) === "{}";
37887
37885
  if (expandedState === true || isEmpty && previousExpandedStateRef.current === true) {
@@ -37889,13 +37887,6 @@ function useTableRenderer(renderers, table, tableRef, length, defaultRowActiveIn
37889
37887
  virtualiser.measure();
37890
37888
  }
37891
37889
  }, [expandedState]);
37892
- React.useEffect(() => {
37893
- const currentSortingString = JSON.stringify(sortingState);
37894
- if (currentSortingString !== previousSortingStateRef.current) {
37895
- previousSortingStateRef.current = currentSortingString;
37896
- virtualiser.measure();
37897
- }
37898
- }, [sortingState]);
37899
37890
  const totalSize = virtualiser.getTotalSize();
37900
37891
  const virtualItems = virtualiser.getVirtualItems();
37901
37892
  const scrollToIndex = React.useCallback(
@@ -37948,7 +37939,7 @@ function useTableRenderer(renderers, table, tableRef, length, defaultRowActiveIn
37948
37939
  row = rows[virtualRow.index];
37949
37940
  }
37950
37941
  if (!(row == null ? void 0 : row.original)) {
37951
- const skeletonKey = `skeleton-${virtualRow.index}-${JSON.stringify(table.getState().sorting).slice(0, 8)}`;
37942
+ const skeletonKey = `skeleton-${virtualRow.index}`;
37952
37943
  return /* @__PURE__ */ React.createElement(
37953
37944
  SkeletonRow,
37954
37945
  {