npm / @visx/responsive
@visx/responsive
What changed in @visx/responsive 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-25.
2 breaking1 new APIs and options1 behavior and defaults2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@visx/responsive 45 changes
Breaking changes 1
React 18 or 19 is required.
New APIs and options 1
useParentSize supports a custom ref, allowing developers to provide their own ref.
Behavior and default changes 1
@types/react becomes an optional peer dependency, so consumers can choose whether to install it.
Fixes and other changes 2
Prevents infinite height growth in flex and grid layouts.
A callback ref fixes dimensions getting stuck at 0×0.
@visx/responsive 31 changes
Breaking changes 1
Using responsive components now requires ResizeObserver or a polyfill.