From d8520e72ec3f0d5a5ebfd508bff8a257aa93ecf4 Mon Sep 17 00:00:00 2001 From: wenyongda Date: Tue, 29 Jul 2025 15:28:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8useEffect=20hooks=E4=B8=AD=E4=BC=A0?= =?UTF-8?q?=E9=80=92=E7=AC=AC=E4=BA=8C=E4=B8=AA=E5=8F=82=E6=95=B0=20?= =?UTF-8?q?=E7=A9=BA=E6=95=B0=E7=BB=84=EF=BC=8C=E5=B0=9D=E8=AF=95=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=20Maximum=20update=20depth=20exceeded.=20This=20can?= =?UTF-8?q?=20happen=20when=20a=20component=20repeatedly=20calls=20setStat?= =?UTF-8?q?e=20inside=20componentWillUpdate=20or=20componentDidUpdate.=20R?= =?UTF-8?q?eact=20limits=20the=20number=20of=20nested=20updates=20to=20pre?= =?UTF-8?q?vent=20infinite=20loops.=20=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/chat-with-history/hooks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/chat-with-history/hooks.tsx b/app/components/chat-with-history/hooks.tsx index e6485ab..40a4d1b 100644 --- a/app/components/chat-with-history/hooks.tsx +++ b/app/components/chat-with-history/hooks.tsx @@ -572,7 +572,7 @@ export const useChatWithHistory = (installedAppInfo?: InstalledApp) => { if (isSubmittingNow) { handleFeedbackSubmit(null, '') } - }) + }, []) const handleFeedbackSubmit = useCallback( async (selectedOption: number | null, feedbackText: string) => {