Skip to content

Commit d1c7ffa

Browse files
authored
docs: fix a typo (#2464)
Fixing an argument order typo reported by a customer.
1 parent cbe4111 commit d1c7ffa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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

docusaurus/react_versioned_docs/version-11.x.x/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)