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
`The useChannelListContext hook was called outside of the ChannelListContext provider. Make sure this hook is called within the ChannelList component. The errored call is located in the ${componentName} component.`,
50
-
);
49
+
if(componentName&&remainingWarningCount>0){
50
+
console.warn(
51
+
`The useChannelListContext hook was called outside of the ChannelListContext provider. Make sure this hook is called within the ChannelList component. The errored call is located in the ${componentName} component.`,
New exported component from `stream-chat-react`. Renders a skeleton loading state (3 placeholder items) for the reactions detail user list. Can be used standalone or as a replacement via `ComponentContext.LoadingIndicator`.
### `MessageReactionsDetail` — reaction type filter is now toggleable
14
+
15
+
Clicking an already-selected reaction type in the detail view now **deselects** it (sets the filter to `null`), showing all reactions. Previously, clicking the active type was a no-op.
16
+
17
+
### `MessageReactionsDetail` — reaction emoji shown per user row
18
+
19
+
When no reaction type filter is active (`selectedReactionType === null`), each user row in the detail list now displays the emoji icon for the reaction type that user sent. This uses `reactionOptions` from `ComponentContext`.
The component now reads `reactionOptions` from `ComponentContext` to resolve emoji components for individual reaction rows.
24
+
25
+
### `useFetchReactions` — fetches all reactions when `reactionType` is `null`
26
+
27
+
Previously, the hook short-circuited and skipped fetching when `reactionType` was `null`. It now proceeds with the fetch, passing `undefined` to the handler, which retrieves all reaction types. This is what enables the "show all reactions" view.
28
+
29
+
### `MessageReactions` — `aria-pressed`/`aria-expanded` on clustered reaction button
30
+
31
+
The clustered reactions list button now includes an `aria-pressed` and `aria-expanded` attribute reflecting whether the reactions detail dialog is open. Improves accessibility for screen readers.
32
+
33
+
### `useChannelListContext` — warning throttled to single emission
34
+
35
+
The console warning emitted when `useChannelListContext` is called outside its provider is now limited to **one occurrence** (module-level counter). Previously, every call without a provider triggered the warning, which could flood the console.
36
+
37
+
Additionally, the warning is now **suppressed entirely** when `componentName` is not provided.
0 commit comments