File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
react_versioned_docs/version-11.x.x/guides Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ Before you can access the _reactive_ channel state you'll need to set the channe
4646 useEffect (() => {
4747 if (! channelId ) return ;
4848
49- const channel = client .channel (channelId , channelType );
49+ const channel = client .channel (channelType , channelId );
5050
5151 setActiveChannel (channel );
5252 }, [channelId , channelType ]);
@@ -65,7 +65,7 @@ Before you can access the _reactive_ channel state you'll need to set the channe
6565 const { client, setActiveChannel } = useChatContext ();
6666
6767 useEffect (() => {
68- const channel = client .channel (channelId , channelType );
68+ const channel = client .channel (channelType , channelId );
6969 setActiveChannel (channel );
7070 }, [channelType , channelId ]);
7171
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ Before you can access the _reactive_ channel state you'll need to set the channe
4646 useEffect (() => {
4747 if (! channelId ) return ;
4848
49- const channel = client .channel (channelId , channelType );
49+ const channel = client .channel (channelType , channelId );
5050
5151 setActiveChannel (channel );
5252 }, [channelId , channelType ]);
@@ -65,7 +65,7 @@ Before you can access the _reactive_ channel state you'll need to set the channe
6565 const { client, setActiveChannel } = useChatContext ();
6666
6767 useEffect (() => {
68- const channel = client .channel (channelId , channelType );
68+ const channel = client .channel (channelType , channelId );
6969 setActiveChannel (channel );
7070 }, [channelType , channelId ]);
7171
You can’t perform that action at this time.
0 commit comments