Unblock React Compiler for 5 components with early exits inside try (#11547)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -83,10 +83,10 @@ export function BetaFeaturesSettingsScreen({}: Props) {
|
||||
} catch (e) {
|
||||
logger.error('Failed to toggle beta features', {safeMessage: e})
|
||||
Toast.show(l`Something went wrong, please try again.`, {type: 'error'})
|
||||
return
|
||||
} finally {
|
||||
setIsPending(false)
|
||||
return
|
||||
}
|
||||
setIsPending(false)
|
||||
/*
|
||||
* The toggle already succeeded; re-evaluate feature gates against the new
|
||||
* attribute in-session as a best-effort follow-up. A failure here should
|
||||
|
||||
Reference in New Issue
Block a user