From 76a8ad15421f16578b073d1e15da58cf01c05ae4 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 20 Jul 2026 17:10:51 +0300 Subject: [PATCH] rm dodgy dep array hack --- .../moderation/ReportDialog/index.tsx | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/components/moderation/ReportDialog/index.tsx b/src/components/moderation/ReportDialog/index.tsx index cee9d1ab60..d1d3aa5584 100644 --- a/src/components/moderation/ReportDialog/index.tsx +++ b/src/components/moderation/ReportDialog/index.tsx @@ -249,23 +249,7 @@ function Inner(props: ReportDialogProps) { } finally { setIsPending(false) } - /* - * Depend on the specific props members used, not the whole props object. - * props is a new object every render, so depending on it recreates this - * callback each render, which on Android tears down the pending - * setTimeout(close) before it fires and the dialog never closes on the - * fast submit path (APP-1999). - */ - }, [ - logger, - submitReport, - props.subject, - props.control, - props.onAfterSubmit, - state, - ax, - l, - ]) + }, [logger, submitReport, props, state, ax, l]) useCallOnce(() => { ax.metric('reportDialog:open', {