We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5bad92 commit 9af9290Copy full SHA for 9af9290
package/src/components/Channel/Channel.tsx
@@ -792,8 +792,7 @@ const ChannelWithContext = <
792
});
793
794
return unsubscribe;
795
- // eslint-disable-next-line react-hooks/exhaustive-deps
796
- }, [channelId]);
+ }, [channel?.cid, client]);
797
798
/**
799
* Subscription to the Notification mark_read event.
@@ -805,8 +804,7 @@ const ChannelWithContext = <
805
804
806
const { unsubscribe } = client.on('notification.mark_read', handleEvent);
807
808
809
- }, []);
+ }, [channel.cid, client, copyChannelState]);
810
811
const threadPropsExists = !!threadProps;
812
0 commit comments