fix: Update memoization logic in ChatView component to prevent scroll bug (#5764)

refactor: Update memoization logic in ChatView component

Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
This commit is contained in:
anovazzi1 2025-01-21 22:15:19 -03:00 committed by GitHub
commit 7fa980e5fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,8 @@ const MemoizedChatMessage = memo(ChatMessage, (prevProps, nextProps) => {
prevProps.chat.id === nextProps.chat.id &&
prevProps.chat.session === nextProps.chat.session &&
prevProps.chat.content_blocks === nextProps.chat.content_blocks &&
prevProps.chat.properties === nextProps.chat.properties
prevProps.chat.properties === nextProps.chat.properties &&
prevProps.lastMessage === nextProps.lastMessage
);
});