[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,
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', {