fix(mobile): harden recorder, queue, context, and screen async lifecycles

This commit is contained in:
Yun Chan 2026-11-14 15:10:18 +09:00
parent 3f9e412257
commit bd3c1a98d9
25 changed files with 2279 additions and 68 deletions

View file

@ -39,7 +39,12 @@ export function DeviceProvider({ children }: { children: ReactNode }): React.Rea
const handleRevocation = useCallback(async (): Promise<void> => {
if (revocationHandledRef.current) return
revocationHandledRef.current = true
await purgeLocalSession()
try {
await purgeLocalSession()
} catch (revocationError) {
revocationHandledRef.current = false
throw revocationError
}
}, [purgeLocalSession])
const refreshCurrentDevice = useCallback(async (): Promise<void> => {