Skip to content

Commit b7cf14c

Browse files
committed
fix: use channel.cid instead of id
1 parent 51893bb commit b7cf14c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package/src/components/Channel/Channel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,7 @@ const ChannelWithContext = <
678678
UrlPreview = CardDefault,
679679
VideoThumbnail = VideoThumbnailDefault,
680680
} = props;
681+
console.log('i am rerendering');
681682

682683
const { thread: threadProps, threadInstance } = threadFromProps;
683684
const StopMessageStreamingButton =
@@ -871,7 +872,7 @@ const ChannelWithContext = <
871872
listener?.unsubscribe();
872873
};
873874
// eslint-disable-next-line react-hooks/exhaustive-deps
874-
}, [channelId, messageId, shouldSyncChannel]);
875+
}, [channel.cid, messageId, shouldSyncChannel]);
875876

876877
// subscribe to channel.deleted event
877878
useEffect(() => {

0 commit comments

Comments
 (0)