Skip to content

Commit 9a3acdc

Browse files
authored
Fix: agent app debug re-rendering issue (#18389)
1 parent 93c1ee2 commit 9a3acdc

File tree

1 file changed

+3
-1
lines changed
  • web/app/components/base/chat/chat/answer

1 file changed

+3
-1
lines changed

web/app/components/base/chat/chat/answer/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,6 @@ const Answer: FC<AnswerProps> = ({
234234
)
235235
}
236236

237-
export default memo(Answer)
237+
export default memo(Answer, (prevProps, nextProps) =>
238+
prevProps.responding === false && nextProps.responding === false,
239+
)

0 commit comments

Comments
 (0)