Reference home > @af-utils/virtual-react > useVirtualModel

useVirtualModel() function

React hook. Creates and stores one VirtualScroller instance. It is not recreated during component lifecycle.

Signature:

useVirtualModel: (params: VirtualScrollerInitialParams) => VirtualScroller

Parameters

Parameter

Type

Description

params

VirtualScrollerInitialParams

Returns

VirtualScroller

Remarks

Normally useVirtual() should be used.