@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.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -13032,9 +13032,13 @@ var createPaginationBuffer = (options) => {
|
|
|
13032
13032
|
},
|
|
13033
13033
|
clear: () => {
|
|
13034
13034
|
if (items !== void 0) {
|
|
13035
|
-
items
|
|
13036
|
-
reportDataChange();
|
|
13035
|
+
items = [];
|
|
13037
13036
|
}
|
|
13037
|
+
hasMoreBackward = void 0;
|
|
13038
|
+
nextBackwardToken = void 0;
|
|
13039
|
+
hasMoreForward = void 0;
|
|
13040
|
+
nextForwardToken = void 0;
|
|
13041
|
+
reportDataChange();
|
|
13038
13042
|
},
|
|
13039
13043
|
fetchBackward: () => {
|
|
13040
13044
|
if (fetchingForward || fetchingBackward) {
|
|
@@ -13393,6 +13397,9 @@ var useSpans = () => {
|
|
|
13393
13397
|
const { checkStatus, error: statusError, status } = useStatus();
|
|
13394
13398
|
const [clearingSpans, setClearingSpans] = (0, import_react47.useState)(false);
|
|
13395
13399
|
const clearSpans = (0, import_react47.useCallback)(async () => {
|
|
13400
|
+
if (clearingSpans) {
|
|
13401
|
+
return;
|
|
13402
|
+
}
|
|
13396
13403
|
setClearingSpans(true);
|
|
13397
13404
|
try {
|
|
13398
13405
|
await api.deleteSpans();
|
|
@@ -13403,7 +13410,7 @@ var useSpans = () => {
|
|
|
13403
13410
|
} finally {
|
|
13404
13411
|
setClearingSpans(false);
|
|
13405
13412
|
}
|
|
13406
|
-
}, [
|
|
13413
|
+
}, [clearingSpans, api]);
|
|
13407
13414
|
const [streamPaused, setStreamPaused] = (0, import_react47.useState)(false);
|
|
13408
13415
|
const toggleStream = (0, import_react47.useCallback)(() => {
|
|
13409
13416
|
setStreamPaused((previous) => !previous);
|