Skip to content

Conversation

DanielRamosAcosta
Copy link

This pull request introduces support for tracking which rows are visible in the virtualized table component. The main change is the addition of an onItemsRendered callback, allowing consumers to be notified about the visible and overscanned row indices. This is useful for features like lazy loading, analytics, or dynamic UI updates based on visible rows.

Virtualization API enhancements:

  • Added a new ListOnRowsRenderedParams type and an OnItemsRendered callback type to src/types/virtualized.ts, enabling detailed tracking of visible and overscan row indices.
  • Extended the VirtualizedProps interface with an optional onItemsRendered prop to allow users to pass a callback.
  • Updated the Virtualized component to accept and forward the onItemsRendered prop, wiring it to the underlying virtualized list implementation. [1] [2]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant