Skip to main content

Interface: ItemLocationCallbackParams<Data, Context>

Type Parameters

Data

Data = unknown

Context

Context = unknown

Properties

scrollLocation

scrollLocation: ListScrollLocation

The location of the list before the data change. See ListScrollLocation for the details of the parameter received.


scrollInProgress

scrollInProgress: boolean

Indicates whether the list is currently scrolling. If you receive fast updates and use 'smooth' scrolling, there's a chance that the list will be in the middle of a scroll when new data arrives.


atBottom

atBottom: boolean

Whether the list is at the bottom before the data change.


data

data: Data[]

The new data that will be appended to the list.


context

context: Context

The context passed to the list.