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

useResizeDetector updating internally on DOM/ref changes #136

Closed whplh closed 3 years ago

whplh commented 3 years ago

The current useResizeDetector does not update on DOM/ref changes of the component it is attached to. Reproduce: demo This pr also adds the dom node it is attached to to the onResize callback.

Resources: res1 res2

maslianok commented 3 years ago

Related to #130