useMutedChannels

Returns the current list of muted channels from the client state store.

Best Practices

  • Use this hook when channel-list behavior depends on global channel mutes.
  • Handle undefined while channel/client data is initializing.
  • Avoid additional client event listeners for channel mute updates.
  • Keep filtering logic memoized when processing large mute lists.
  • Use with useChannelMuteActive when rendering per-row mute state.

Usage

import { useMutedChannels } from "stream-chat-react-native";

const mutedChannels = useMutedChannels(channel) ?? [];

Parameters

Name Type Required Description
channel Channel No Optional channel anchor used by internal syncing.

Returns

Type Description
ChannelMute[] | undefined List of muted channels for the client.
Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Chat React Native v9: <Your Question>