Skip to content

Commit ba38eeb

Browse files
committed
docs: fix a typo
1 parent 310835d commit ba38eeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docusaurus/docs/React/guides/sdk-state-management.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)