Skip to content

Hooks

useCurrentlyRenderedData<Data>(): Data[]

Lets you access the currently rendered data items.

Type ParameterDescription
DataThe type of the data items in the list.

Data[]


useVirtuosoLocation(): ListScrollLocation

Lets you access the current scroll location of the message list component from its child components. See ListScrollLocation for the available properties.

ListScrollLocation


useVirtuosoMethods<Data, Context>(): VirtuosoMessageListMethods<Data, Context>

Lets you access the message list methods from its child components. See VirtuosoMessageListMethods for the available methods.

Type ParameterDefault typeDescription
DataunknownThe type of the data items in the list.
ContextunknownThe type of the context passed to the list.

VirtuosoMessageListMethods<Data, Context>