@economic/taco 2.67.1-footer-fix.0 → 2.67.1-footer-fix.2

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.js CHANGED
@@ -35546,7 +35546,7 @@ function configureReactTableOptions(options, props, localization) {
35546
35546
  if (originalRow) {
35547
35547
  return String(originalRow[props.rowIdentityAccessor]);
35548
35548
  }
35549
- return `skeleton-${index2}-${Math.random().toString(36).substr(2, 9)}`;
35549
+ return String(index2);
35550
35550
  };
35551
35551
  }
35552
35552
  const tableOptions = {
@@ -37862,8 +37862,6 @@ function useTableRenderer(renderers, table, tableRef, length, defaultRowActiveIn
37862
37862
  });
37863
37863
  const expandedState = table.getState().expanded;
37864
37864
  const previousExpandedStateRef = React__default.useRef(false);
37865
- const sortingState = table.getState().sorting;
37866
- const previousSortingStateRef = React__default.useRef(JSON.stringify(sortingState));
37867
37865
  React__default.useEffect(() => {
37868
37866
  const isEmpty = JSON.stringify(expandedState) === "{}";
37869
37867
  if (expandedState === true || isEmpty && previousExpandedStateRef.current === true) {
@@ -37871,13 +37869,6 @@ function useTableRenderer(renderers, table, tableRef, length, defaultRowActiveIn
37871
37869
  virtualiser.measure();
37872
37870
  }
37873
37871
  }, [expandedState]);
37874
- React__default.useEffect(() => {
37875
- const currentSortingString = JSON.stringify(sortingState);
37876
- if (currentSortingString !== previousSortingStateRef.current) {
37877
- previousSortingStateRef.current = currentSortingString;
37878
- virtualiser.measure();
37879
- }
37880
- }, [sortingState]);
37881
37872
  const totalSize = virtualiser.getTotalSize();
37882
37873
  const virtualItems = virtualiser.getVirtualItems();
37883
37874
  const scrollToIndex = React__default.useCallback(
@@ -37930,10 +37921,11 @@ function useTableRenderer(renderers, table, tableRef, length, defaultRowActiveIn
37930
37921
  row = rows[virtualRow.index];
37931
37922
  }
37932
37923
  if (!(row == null ? void 0 : row.original)) {
37924
+ const skeletonKey = `skeleton-${virtualRow.index}-${JSON.stringify(table.getState().sorting).slice(0, 8)}`;
37933
37925
  return /* @__PURE__ */ React__default.createElement(
37934
37926
  SkeletonRow,
37935
37927
  {
37936
- key: virtualRow.index,
37928
+ key: skeletonKey,
37937
37929
  index: virtualRow.index,
37938
37930
  scrollDirection: virtualiser.scrollDirection ?? void 0,
37939
37931
  table