Skip to content

Commit

Permalink
fix: reflect Message groupStyles prop in the component memoization (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupela committed Jul 10, 2024
1 parent 5a681fb commit 251eb08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Message/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ export const areMessageUIPropsEqual = <
if (prevProps.endOfGroup !== nextProps.endOfGroup) return false;
if (prevProps.mutes?.length !== nextProps.mutes?.length) return false;
if (prevProps.readBy?.length !== nextProps.readBy?.length) return false;
if (prevProps.groupStyles !== nextProps.groupStyles) return false;

if (prevProps.showDetailedReactions !== nextProps.showDetailedReactions) {
return false;
Expand Down

0 comments on commit 251eb08

Please sign in to comment.