Skip to content

Commit 3dd1df0

Browse files
committed
fix on timeout effect
1 parent cc89ff3 commit 3dd1df0

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

static/app/views/seerExplorer/hooks/useSeerExplorer.tsx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -538,16 +538,11 @@ export const useSeerExplorer = () => {
538538

539539
useEffect(() => {
540540
if (isLoaded || isTimedOut) {
541-
if (waitingForResponse) {
542-
// Reset waiting and request states
543-
setWaitingForResponse(false);
544-
setOptimistic(null);
545-
setDeletedFromIndex(null);
546-
}
547-
548-
if (!isTimedOut) {
549-
cancelPollingTimeout();
550-
}
541+
// Reset waiting and request states
542+
setWaitingForResponse(false);
543+
setOptimistic(null);
544+
setDeletedFromIndex(null);
545+
cancelPollingTimeout();
551546

552547
if (interruptRequested) {
553548
// Clear waiting for interrupt state and set persistent UI flag until next request

0 commit comments

Comments
 (0)