Guard crash report dialog async state after unmount
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user