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:
parent
6f04e5783c
commit
7fa980e5fc
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue