You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docusaurus/docs/React/components/contexts/chat-context.mdx
-78Lines changed: 0 additions & 78 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,14 +33,6 @@ The currently active channel, which populates the [`Channel`](../core-components
33
33
| ------- |
34
34
| Channel |
35
35
36
-
### channels
37
-
38
-
State representing the array of loaded channels. Channels query is executed by default only within the [`ChannelList` component](../core-components/channel-list.mdx) in the SDK.
39
-
40
-
| Type |
41
-
|-------------|
42
-
|`Channel[]`|
43
-
44
36
### channelsQueryState
45
37
46
38
Exposes API that:
@@ -127,76 +119,6 @@ You can override the default behavior by pulling it from context and then utiliz
127
119
| -------- |
128
120
| function |
129
121
130
-
### setChannels
131
-
132
-
Sets the list of `Channel` objects to be rendered by `ChannelList` component. One have to be careful, when to call `setChannels` as the first channels query executed by the `ChannelList` overrides the whole [`channels` state](#channels). In that case it is better to subscribe to `client` event `channels.queried` and only then set the channels.
133
-
In the following example, we have a component that sets the active channel based on the id in the URL. It waits until the first channels page is loaded, and then it sets the active channel. If the channel is not present on the first page, it performs additional API request with `getChannel()`:
Deprecated and to be removed in a future major release. Use the `customStyles` prop to adjust CSS variables and [customize the theme](../../guides/theming/css-and-theming.mdx#css-variables) of your app.
0 commit comments