From da2e31694a49db91e7269ddb9b08cef565e3a199 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 15 Sep 2025 20:11:48 -0700 Subject: [PATCH] fix: cleanup of render debug --- gui/src/hooks/useRenderDebug.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/src/hooks/useRenderDebug.tsx b/gui/src/hooks/useRenderDebug.tsx index bc5fb8308..2a86247eb 100644 --- a/gui/src/hooks/useRenderDebug.tsx +++ b/gui/src/hooks/useRenderDebug.tsx @@ -40,7 +40,11 @@ export function useRenderDebug(options?: { () => el.classList.remove(flashClassName), flashDurationMs, ); - return () => clearTimeout(t); + return () => { + clearTimeout(t); + // Ensure we don't leave the flash class applied on cleanup + el.classList.remove(flashClassName); + }; }); return { ref, count: countRef.current, countRef } as const;