# VirtualizedMessageListService

The `VirtualizedMessageListService` removes messages from the message list that are currently not in view

## Hierarchy

- [`VirtualizedListService`](/chat/docs/sdk/angular/v6/services/VirtualizedListService)<`StreamMessage`\>

  ↳ **`VirtualizedMessageListService`**

## Properties

### queryState$

**queryState$**: `Observable`\<`VirtualizedListQueryState`\>

The result of the last query used to load more items

#### Inherited from

[VirtualizedListService](/chat/docs/sdk/angular/v6/services/VirtualizedListService).[queryState$](/chat/docs/sdk/angular/v6/services/VirtualizedListService#querystate$)

#### Defined in

[projects/stream-chat-angular/src/lib/virtualized-list.service.ts:46](https://github.com/GetStream/stream-chat-angular/blob/b8e03ec6da285f5e7c533ce710ebb946cded1190/projects/stream-chat-angular/src/lib/virtualized-list.service.ts#L46)

---

### virtualizedItems$

**virtualizedItems$**: `Observable`\<`StreamMessage`[]\>

The items that should be currently displayed, a subset of all items

#### Inherited from

[VirtualizedListService](/chat/docs/sdk/angular/v6/services/VirtualizedListService).[virtualizedItems$](/chat/docs/sdk/angular/v6/services/VirtualizedListService#virtualizeditems$)

#### Defined in

[projects/stream-chat-angular/src/lib/virtualized-list.service.ts:42](https://github.com/GetStream/stream-chat-angular/blob/b8e03ec6da285f5e7c533ce710ebb946cded1190/projects/stream-chat-angular/src/lib/virtualized-list.service.ts#L42)

## Accessors

### virtualizedItems

`get` **virtualizedItems**(): `T`[]

The current value of virtualized items

#### Returns

`T`[]

#### Inherited from

VirtualizedListService.virtualizedItems

#### Defined in

[projects/stream-chat-angular/src/lib/virtualized-list.service.ts:355](https://github.com/GetStream/stream-chat-angular/blob/b8e03ec6da285f5e7c533ce710ebb946cded1190/projects/stream-chat-angular/src/lib/virtualized-list.service.ts#L355)

## Methods

### dispose

**dispose**(): `void`

Remove all subscriptions, call this once you're done using an instance of this service

#### Returns

`void`

#### Inherited from

[VirtualizedListService](/chat/docs/sdk/angular/v6/services/VirtualizedListService).[dispose](/chat/docs/sdk/angular/v6/services/VirtualizedListService#dispose)

#### Defined in

[projects/stream-chat-angular/src/lib/virtualized-list.service.ts:362](https://github.com/GetStream/stream-chat-angular/blob/b8e03ec6da285f5e7c533ce710ebb946cded1190/projects/stream-chat-angular/src/lib/virtualized-list.service.ts#L362)

---

This page was last updated at 2025-11-25T16:21:26.461Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/angular/v6/services/VirtualizedMessageListService/](https://getstream.io/chat/docs/sdk/angular/v6/services/VirtualizedMessageListService/).