pb-sxp-ui 1.15.43 → 1.15.44

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/pb-ui.js CHANGED
@@ -18241,8 +18241,9 @@ Made in Italy` })));
18241
18241
  };
18242
18242
  });
18243
18243
  React.useEffect(() => {
18244
+ let timerId;
18244
18245
  if (isLoad && isActive && isDiyH5) {
18245
- setTimeout(() => {
18246
+ timerId = setTimeout(() => {
18246
18247
  var _a, _b, _c, _d, _e, _f;
18247
18248
  if (!loopPlayRef.current)
18248
18249
  return;
@@ -18255,6 +18256,10 @@ Made in Italy` })));
18255
18256
  }
18256
18257
  }, 3000);
18257
18258
  }
18259
+ return () => {
18260
+ if (timerId)
18261
+ clearTimeout(timerId);
18262
+ };
18258
18263
  }, [isLoad, isActive, isDiyH5, data, index, swiperRef]);
18259
18264
  React.useEffect(() => {
18260
18265
  if (isLoad && isActive) {