diff --git a/packages/cli/src/ui/hooks/useBtw.ts b/packages/cli/src/ui/hooks/useBtw.ts index 65e9cdb39d..896fbaa106 100644 --- a/packages/cli/src/ui/hooks/useBtw.ts +++ b/packages/cli/src/ui/hooks/useBtw.ts @@ -215,6 +215,9 @@ export const useBtw = ( if (abortControllerRef.current) { abortControllerRef.current.abort(); } + if (flushTimerRef.current) { + clearTimeout(flushTimerRef.current); + } }, [], );