Guard crash report dialog async state after unmount

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Jinwoo-H
2026-05-31 03:10:40 -07:00
committed by Neil
co-authored by Orca
parent 2a88c415e3
commit 9fd58094c8
@@ -148,6 +148,12 @@ export function CrashReportDialog(): React.JSX.Element {
[mountedRef, openDialog]
)
useEffect(() => {
return () => {
viewerRequestIdRef.current += 1
}
}, [])
useEffect(() => {
if (promptedThisLaunch.current) {
return