@localstack/appinspector-ui 1.0.119 → 1.0.120
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 +21 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -31506,6 +31506,27 @@ var SpansListPage = () => {
|
|
|
31506
31506
|
clearFetchError();
|
|
31507
31507
|
void checkStatus();
|
|
31508
31508
|
}, [api, checkStatus, clearFetchError]);
|
|
31509
|
+
const isDelayedRefetchRef = (0, import_react68.useRef)(false);
|
|
31510
|
+
const delayedRefetchTimerRef = (0, import_react68.useRef)();
|
|
31511
|
+
const prevFetchingForwardRef = (0, import_react68.useRef)(false);
|
|
31512
|
+
(0, import_react68.useEffect)(() => {
|
|
31513
|
+
const wasFetching = prevFetchingForwardRef.current;
|
|
31514
|
+
prevFetchingForwardRef.current = fetchingForward;
|
|
31515
|
+
if (wasFetching && !fetchingForward) {
|
|
31516
|
+
if (isDelayedRefetchRef.current) {
|
|
31517
|
+
isDelayedRefetchRef.current = false;
|
|
31518
|
+
} else {
|
|
31519
|
+
clearTimeout(delayedRefetchTimerRef.current);
|
|
31520
|
+
delayedRefetchTimerRef.current = setTimeout(() => {
|
|
31521
|
+
isDelayedRefetchRef.current = true;
|
|
31522
|
+
fetchForward();
|
|
31523
|
+
}, 2e3);
|
|
31524
|
+
}
|
|
31525
|
+
}
|
|
31526
|
+
return () => {
|
|
31527
|
+
clearTimeout(delayedRefetchTimerRef.current);
|
|
31528
|
+
};
|
|
31529
|
+
}, [fetchingForward, fetchForward]);
|
|
31509
31530
|
const shouldShowStatusMessage = Boolean(statusError) || status?.status === "DISABLED";
|
|
31510
31531
|
return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(import_jsx_runtime146.Fragment, { children: [
|
|
31511
31532
|
/* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(
|