> ## Documentation Index
> Fetch the complete documentation index at: https://docs.towns.com/llms.txt
> Use this file to discover all available pages before exploring further.

# useMemberList

Hook to get the members userIds of a Space, GDM, Channel, or DM. Used with useMember to get data from a specific member.

## Imports

```ts theme={null}
import { useMemberList } from '@towns-protocol/react-sdk'
```

## Definition

```ts theme={null}
function useMemberList(
  streamId: string,
  config?: ObservableConfig.FromData<MembersModel>,
): ObservableValue<MembersModel>
```

**Source:** [useMemberList](https://github.com/towns-protocol/towns/blob/main/packages/react-sdk/src/useMemberList.ts)

## Parameters

### streamId

* **Type:** `string`

The id of the stream to get the members of.

### config

* **Type:** `ObservableConfig.FromData<MembersModel>`
* **Optional**

Configuration options for the observable.

## Return Type

The MembersModel of the stream, containing the userIds of the members.

```ts theme={null}
ObservableValue<MembersModel>
```
