# useChannelActionItemsById

Returns channel action items indexed by their `id` for fast access.

## Best Practices

- Use this hook when action lookup by id is needed in custom UI.
- Keep item ids stable when overriding default channel actions.
- Prefer this hook over array search when repeatedly resolving actions.
- Pass the same `getChannelActionItems` customization used by your action list.
- Handle missing ids defensively in custom components.

## Usage

```tsx
import { useChannelActionItemsById } from "stream-chat-react-native";

const itemsById = useChannelActionItemsById({ channel });
const muteItem = itemsById.mute;
```

## Parameters

| Name                  | Type                    | Required | Description                              |
| --------------------- | ----------------------- | -------- | ---------------------------------------- |
| channel               | `Channel`               | Yes      | Channel used to compute action items.    |
| getChannelActionItems | `GetChannelActionItems` | No       | Optional custom action item transformer. |

## Returns

| Type                     | Description                                |
| ------------------------ | ------------------------------------------ |
| `ChannelActionItemsById` | Map of action id to channel action config. |


---

This page was last updated at 2026-04-17T17:33:46.143Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/react-native/hooks/channel-list/use-channel-action-items-by-id/](https://getstream.io/chat/docs/sdk/react-native/hooks/channel-list/use-channel-action-items-by-id/).