[APP-1999] Fix ReportDialog Android hang by narrowing dependency arrays (#10171)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Spence Pope
2026-04-06 17:46:31 -04:00
committed by GitHub
parent 3685439ffb
commit c0d3010f3e
@@ -184,7 +184,7 @@ function Inner(props: ReportDialogProps) {
) )
}) })
}, [ }, [
props, props.subject,
allLabelers, allLabelers,
state.selectedOption, state.selectedOption,
isBskyOnlyReason, isBskyOnlyReason,
@@ -241,7 +241,17 @@ function Inner(props: ReportDialogProps) {
} finally { } finally {
setPending(false) setPending(false)
} }
}, [_, submitReport, state, dispatch, props, setPending, setSuccess]) }, [
_,
submitReport,
state,
dispatch,
props.subject,
props.control,
props.onAfterSubmit,
setPending,
setSuccess,
])
useCallOnce(() => { useCallOnce(() => {
ax.metric('reportDialog:open', { ax.metric('reportDialog:open', {