@wix/editor-react-components 1.2578.0 → 1.2579.0

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.
@@ -502,10 +502,10 @@ const Repeater = (props) => {
502
502
  emptyStateContent: emptyStateContent2,
503
503
  isEmpty: isEmptyProp
504
504
  } = props;
505
- const showEmptyState = isEmptyProp === true || items.length === 0;
505
+ const showEmptyState = !isLoadingProp && (isEmptyProp === true || items.length === 0);
506
506
  const presetsWrapperProps = ((_a = props.wix) == null ? void 0 : _a.presetsWrapperProps) || {};
507
507
  const [sentinelRef, isIntersecting] = useLoadMoreObserver(
508
- !!onLoadMore && !showEmptyState
508
+ !!onLoadMore && !showEmptyState && !isLoadingProp
509
509
  );
510
510
  const { isLoading, load, hasReachedEnd } = useAsyncLoadMore(
511
511
  onLoadMore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2578.0",
3
+ "version": "1.2579.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -199,5 +199,5 @@
199
199
  "registry": "https://registry.npmjs.org/",
200
200
  "access": "public"
201
201
  },
202
- "falconPackageHash": "952ca899e6d8957ecd6bc746d7a8f02ce7e84607d32e8a112a363742"
202
+ "falconPackageHash": "0c2730a4603960bf43c48d8730802b3b2119fed88244824ae30d3bdd"
203
203
  }