[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:
@@ -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', {
|
||||||
|
|||||||
Reference in New Issue
Block a user