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:
@@ -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 (
|
||||
|
||||
@@ -559,9 +559,8 @@ function ComposeBtn({minimal}: {minimal: boolean}) {
|
||||
handle = await fetchHandle(handle)
|
||||
} catch (e) {
|
||||
handle = undefined
|
||||
} finally {
|
||||
setIsFetchingHandle(false)
|
||||
}
|
||||
setIsFetchingHandle(false)
|
||||
}
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user