From 2ca919023cfe51d255c694b984febf28a679431e Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Tue, 2 Jul 2024 16:01:43 -0700 Subject: [PATCH] fix: ThreadMessages memo fix (#380) --- packages/react/src/primitives/thread/ThreadMessages.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react/src/primitives/thread/ThreadMessages.tsx b/packages/react/src/primitives/thread/ThreadMessages.tsx index 573acebd3..0944498cc 100644 --- a/packages/react/src/primitives/thread/ThreadMessages.tsx +++ b/packages/react/src/primitives/thread/ThreadMessages.tsx @@ -69,6 +69,7 @@ const ThreadMessage = memo( ThreadMessageImpl, (prev, next) => prev.messageIndex === next.messageIndex && + prev.components.Message === next.components.Message && prev.components.UserMessage === next.components.UserMessage && prev.components.EditComposer === next.components.EditComposer && prev.components.AssistantMessage === next.components.AssistantMessage,