From 9fd58094c84ec0c9b35893a72c883cfccab9899e Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Sat, 30 May 2026 01:12:29 -0700 Subject: [PATCH] Guard crash report dialog async state after unmount Co-authored-by: Orca --- .../src/components/crash-report/CrashReportDialog.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/renderer/src/components/crash-report/CrashReportDialog.tsx b/src/renderer/src/components/crash-report/CrashReportDialog.tsx index e9b5526af..a8ad1d408 100644 --- a/src/renderer/src/components/crash-report/CrashReportDialog.tsx +++ b/src/renderer/src/components/crash-report/CrashReportDialog.tsx @@ -148,6 +148,12 @@ export function CrashReportDialog(): React.JSX.Element { [mountedRef, openDialog] ) + useEffect(() => { + return () => { + viewerRequestIdRef.current += 1 + } + }, []) + useEffect(() => { if (promptedThisLaunch.current) { return