We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c0c0d9 commit e38c060Copy full SHA for e38c060
src/components/ChannelPreview/ChannelPreview.tsx
@@ -111,8 +111,7 @@ export const ChannelPreview = <
111
112
client.on('notification.mark_read', handleEvent);
113
return () => client.off('notification.mark_read', handleEvent);
114
- // eslint-disable-next-line react-hooks/exhaustive-deps
115
- }, []);
+ }, [channel, client]);
116
117
useEffect(() => {
118
const handleEvent = (event: Event) => {
0 commit comments