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 d0759b7 commit 89424d4Copy full SHA for 89424d4
package/src/components/Channel/Channel.tsx
@@ -766,7 +766,11 @@ const ChannelWithContext = <
766
767
const handleEvent: EventHandler<StreamChatGenerics> = (event) => {
768
if (shouldSyncChannel) {
769
- // Ignore user.watching.start and user.watching.stop events
+ /**
770
+ * Ignore user.watching.start and user.watching.stop as we should not copy the entire state when
771
+ * they occur. Also ignore all poll related events since they're being handled in their own
772
+ * reactive state and have no business having an effect on the Channel component.
773
+ */
774
if (
775
event.type.startsWith('poll.') ||
776
event.type === 'user.watching.start' ||
0 commit comments