fix(mobile): harden recorder, queue, context, and screen async lifecycles
This commit is contained in:
parent
3f9e412257
commit
bd3c1a98d9
25 changed files with 2279 additions and 68 deletions
|
|
@ -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> => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue