From c0d3010f3e2699a9ff3e2c9603c0b170c8411035 Mon Sep 17 00:00:00 2001 From: Spence Pope Date: Mon, 6 Apr 2026 17:46:31 -0400 Subject: [PATCH] [APP-1999] Fix ReportDialog Android hang by narrowing dependency arrays (#10171) Co-authored-by: Claude Opus 4.6 (1M context) --- src/components/moderation/ReportDialog/index.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/moderation/ReportDialog/index.tsx b/src/components/moderation/ReportDialog/index.tsx index ec6484ae6f..678fd8886a 100644 --- a/src/components/moderation/ReportDialog/index.tsx +++ b/src/components/moderation/ReportDialog/index.tsx @@ -184,7 +184,7 @@ function Inner(props: ReportDialogProps) { ) }) }, [ - props, + props.subject, allLabelers, state.selectedOption, isBskyOnlyReason, @@ -241,7 +241,17 @@ function Inner(props: ReportDialogProps) { } finally { setPending(false) } - }, [_, submitReport, state, dispatch, props, setPending, setSuccess]) + }, [ + _, + submitReport, + state, + dispatch, + props.subject, + props.control, + props.onAfterSubmit, + setPending, + setSuccess, + ]) useCallOnce(() => { ax.metric('reportDialog:open', {