Skip to content

Commit e38c060

Browse files
committed
fix: add missing effect dependencies in ChannelPreview
1 parent 5c0c0d9 commit e38c060

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/ChannelPreview/ChannelPreview.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ export const ChannelPreview = <
111111

112112
client.on('notification.mark_read', handleEvent);
113113
return () => client.off('notification.mark_read', handleEvent);
114-
// eslint-disable-next-line react-hooks/exhaustive-deps
115-
}, []);
114+
}, [channel, client]);
116115

117116
useEffect(() => {
118117
const handleEvent = (event: Event) => {

0 commit comments

Comments
 (0)