Skip to content

Commit

Permalink
add rule to equal fn
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyphilemon committed Dec 20, 2024
1 parent d66c34b commit 953fe7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const Messages = memo(PureMessages, (prevProps, nextProps) => {

if (prevProps.isLoading !== nextProps.isLoading) return false;
if (prevProps.isLoading && nextProps.isLoading) return false;
if (prevProps.messages.length !== nextProps.messages.length) return false;
if (!equal(prevProps.messages, nextProps.messages)) return false;
if (!equal(prevProps.votes, nextProps.votes)) return false;

return true;
Expand Down

0 comments on commit 953fe7e

Please sign in to comment.