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
@@ -429,14 +429,13 @@ let PostMenuItems = ({
type: 'error',
})
}
} finally {
ax.metric('postMenu:blockAccount', {
uri: postUri,
authorDid: postAuthor.did,
logContext,
feedDescriptor: feedFeedback.feedDescriptor,
})
}
ax.metric('postMenu:blockAccount', {
uri: postUri,
authorDid: postAuthor.did,
logContext,
feedDescriptor: feedFeedback.feedDescriptor,
})
}
const onMuteAuthor = async () => {
@@ -452,14 +451,13 @@ let PostMenuItems = ({
type: 'error',
})
}
} finally {
ax.metric('postMenu:unmuteAccount', {
uri: postUri,
authorDid: postAuthor.did,
logContext,
feedDescriptor: feedFeedback.feedDescriptor,
})
}
ax.metric('postMenu:unmuteAccount', {
uri: postUri,
authorDid: postAuthor.did,
logContext,
feedDescriptor: feedFeedback.feedDescriptor,
})
} else {
try {
await queueMute()
@@ -472,14 +470,13 @@ let PostMenuItems = ({
type: 'error',
})
}
} finally {
ax.metric('postMenu:muteAccount', {
uri: postUri,
authorDid: postAuthor.did,
logContext,
feedDescriptor: feedFeedback.feedDescriptor,
})
}
ax.metric('postMenu:muteAccount', {
uri: postUri,
authorDid: postAuthor.did,
logContext,
feedDescriptor: feedFeedback.feedDescriptor,
})
}
}
@@ -95,9 +95,8 @@ function DeviceLocationRequestDialogInner({onLocationAcquired}: Props) {
safeMessage: e.message,
})
}
} finally {
setIsRequesting(false)
}
setIsRequesting(false)
}
return (
@@ -241,9 +241,8 @@ export function PostInteractionSettingsDialogControlledInner(
type: 'error',
},
)
} finally {
setIsSaving(false)
}
setIsSaving(false)
}, [
_,
ax,
@@ -319,9 +319,8 @@ function Inner(
type: 'setError',
error,
})
} finally {
setIsPending(false)
}
setIsPending(false)
}, [logger, submitReport, props, state, ax, l, videoTimestampSeconds])
useCallOnce(() => {