diff --git a/src/components/CanvasBlurCapture.tsx b/src/components/CanvasBlurCapture.tsx index a47d6a2a..ce66d3de 100644 --- a/src/components/CanvasBlurCapture.tsx +++ b/src/components/CanvasBlurCapture.tsx @@ -83,7 +83,10 @@ export default function CanvasBlurCapture({ // Store timeout ref to ensure it's closed over // in cleanup function (recommended by exhaustive-deps) const timeouts = refTimeouts.current; - return () => timeouts.forEach(clearTimeout); + return () => { + refShouldCapture.current = false; + timeouts.forEach(clearTimeout); + }; }, [ imageUrl, onCapture,