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 51893bb commit b7cf14cCopy full SHA for b7cf14c
package/src/components/Channel/Channel.tsx
@@ -678,6 +678,7 @@ const ChannelWithContext = <
678
UrlPreview = CardDefault,
679
VideoThumbnail = VideoThumbnailDefault,
680
} = props;
681
+ console.log('i am rerendering');
682
683
const { thread: threadProps, threadInstance } = threadFromProps;
684
const StopMessageStreamingButton =
@@ -871,7 +872,7 @@ const ChannelWithContext = <
871
872
listener?.unsubscribe();
873
};
874
// eslint-disable-next-line react-hooks/exhaustive-deps
- }, [channelId, messageId, shouldSyncChannel]);
875
+ }, [channel.cid, messageId, shouldSyncChannel]);
876
877
// subscribe to channel.deleted event
878
useEffect(() => {
0 commit comments