maslianok / react-resize-detector

A Cross-Browser, Event-based, Element Resize Detection for React
http://maslianok.github.io/react-resize-detector/
MIT License
1.25k stars 91 forks source link

Remove dependency on resize-observer-polyfill #186

Closed Philipp91 closed 2 years ago

Philipp91 commented 2 years ago

Handle element resizes like it's 2021!

In 2021, it's already been 1-3 years since major browsers started supporting ResizeObserver natively. Users who haven't updated their browser for that long are in trouble anyway. Application developers who still want to support such users, can just add back the dependency. The latest version of the polyfill has broken types (https://github.com/que-etc/resize-observer-polyfill/issues/83), so it's a hassle to deal with.

This requries a major version release.

maslianok commented 2 years ago

Thank you for the feedback 👍

Removed & published v7.0.0