npm / react-virtualized-auto-sizer
react-virtualized-auto-sizer
What changed in react-virtualized-auto-sizer 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
3 breaking2 new APIs and options2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreact-virtualized-auto-sizer 27 changes
Breaking changes 3
Version 2 uses the Child prop to provide the child component instead of a function as AutoSizer's children.
The disableWidth prop was removed; React.memo can be used to achieve this behavior instead.
The prop was removed, and the component no longer bails out on empty children; that decision is left to the child component.
New APIs and options 2
ChildComponent and renderProp are separate props, so developers can use them independently.
renderProp and ChildComponent are separate props, so developers can use them independently.
Fixes and other changes 2
Changes to the box prop are no longer ignored after the initial render; the parent is remeasured as soon as box changes.
Fixes content-box sizes being calculated with styles from the wrong window when rendering into an iframe or popup.