Skip to content

Commit eafd5ad

Browse files
committed
fix: critical performance issue with missing dependency array.
1 parent a15fc60 commit eafd5ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platforms/blabsy/src/components/chat/chat-window.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export function ChatWindow(): JSX.Element {
120120
unreadMessages.map((message) => markAsRead(message.id))
121121
);
122122
}
123-
});
123+
}, [currentChat, user, messages, markAsRead]);
124124

125125
const handleSubmit = async (e: React.FormEvent): Promise<void> => {
126126
e.preventDefault();

0 commit comments

Comments
 (0)