Unblock React Compiler for 13 components by hoisting finally blocks (#11540)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Tomasz Zawadzki
2026-08-27 17:06:01 +02:00
committed by GitHub
parent c4c999ff4f
commit 296b74d781
19 changed files with 39 additions and 63 deletions
@@ -103,9 +103,8 @@ export function NotificationFeed({
logger.error('Failed to refresh notifications feed', {
message: err,
})
} finally {
setIsPTRing(false)
}
setIsPTRing(false)
}, [refreshNotifications, setIsPTRing])
const onEndReached = useCallback(async () => {
@@ -920,9 +920,8 @@ function SayHelloBtn({profile}: {profile: app.bsky.actor.defs.ProfileView}) {
})
} catch (e) {
logger.error('Failed to get conversation', {safeMessage: e})
} finally {
setIsLoading(false)
}
setIsLoading(false)
}
if (
+1 -2
View File
@@ -559,9 +559,8 @@ function ComposeBtn({minimal}: {minimal: boolean}) {
handle = await fetchHandle(handle)
} catch (e) {
handle = undefined
} finally {
setIsFetchingHandle(false)
}
setIsFetchingHandle(false)
}
if (