Skip to content

Commit 32af924

Browse files
committed
fix: properly use initializeOnMount
1 parent d409eb8 commit 32af924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/components/Channel/Channel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
945945
}
946946
let errored = false;
947947

948-
if (!channel.initialized || !channel.state.isUpToDate || !initializeOnMount) {
948+
if ((!channel.initialized || !channel.state.isUpToDate) && initializeOnMount) {
949949
try {
950950
await channel?.watch();
951951
} catch (err) {

0 commit comments

Comments
 (0)