Stanko / react-animate-height

Lightweight React component for animating height using CSS transitions. Slide up/down the element, and animate it to any specific height.
https://muffinman.io/react-animate-height
MIT License
758 stars 53 forks source link

Update auto-height example to disconnect ResizeObserver when unmounted #146

Closed PrettyCoffee closed 1 year ago

PrettyCoffee commented 1 year ago

Noticed this when looking into the examples. Just to make sure that the cleanup is handled properly, when the component unmounts.

Stanko commented 1 year ago

Nice catch, thank you!