@localstack/appinspector-ui 1.0.63 → 1.0.64

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
@@ -13029,9 +13029,13 @@ var createPaginationBuffer = (options) => {
13029
13029
  },
13030
13030
  clear: () => {
13031
13031
  if (items !== void 0) {
13032
- items.length = 0;
13033
- reportDataChange();
13032
+ items = [];
13034
13033
  }
13034
+ hasMoreBackward = void 0;
13035
+ nextBackwardToken = void 0;
13036
+ hasMoreForward = void 0;
13037
+ nextForwardToken = void 0;
13038
+ reportDataChange();
13035
13039
  },
13036
13040
  fetchBackward: () => {
13037
13041
  if (fetchingForward || fetchingBackward) {
@@ -13390,6 +13394,9 @@ var useSpans = () => {
13390
13394
  const { checkStatus, error: statusError, status } = useStatus();
13391
13395
  const [clearingSpans, setClearingSpans] = useState7(false);
13392
13396
  const clearSpans = useCallback7(async () => {
13397
+ if (clearingSpans) {
13398
+ return;
13399
+ }
13393
13400
  setClearingSpans(true);
13394
13401
  try {
13395
13402
  await api.deleteSpans();
@@ -13400,7 +13407,7 @@ var useSpans = () => {
13400
13407
  } finally {
13401
13408
  setClearingSpans(false);
13402
13409
  }
13403
- }, [paginationBuffer, api]);
13410
+ }, [clearingSpans, api]);
13404
13411
  const [streamPaused, setStreamPaused] = useState7(false);
13405
13412
  const toggleStream = useCallback7(() => {
13406
13413
  setStreamPaused((previous) => !previous);