npm / react-window-infinite-loader
react-window-infinite-loader
What changed in react-window-infinite-loader 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-25.
4 breaking1 deprecations1 new APIs and options3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreact-window-infinite-loader 29 changes
Breaking changes 4
Rows are no longer marked as pending after the loadMoreRows Promise settles, so rows from failed requests are requested again; errors should be handled within loadMoreRows.
The child function no longer receives the listRef parameter.
The child function parameter formerly named onItemsRendered is now named onRowsRendered.
The package was rewritten to be compatible with the react-window version two API.
Deprecations 1
The external TypeScript definitions package is deprecated because this package now includes and bundles its own definitions.
New APIs and options 1
A new hook is the recommended way to use the library and provides an onRowsRendered callback for the List.
Fixes and other changes 3
Fixes the TypeScript types so InfiniteLoader can be used as a JSX component; the children render prop now returns ReactNode.
Recreating the isRowLoaded or loadMoreRows callbacks no longer causes rows that are still loading to be requested again.
Fixes calls being skipped for every other unloaded range when a list contains multiple gaps.