Closed josephmarkus closed 2 years ago
react-animate-height blows up in React 18. The library is used for an accordion component that animates on state toggle.
react-animate-height
Code example https://codesandbox.io/s/lingering-wood-tjnu2k?file=/src/App.js
Expected behavior
Clicking 'Open' should expand the component that is wrapped with <AnimateHeight />. Instead, it blows up
<AnimateHeight />
Possible Solution
🤷♂️ 😅
Steps to Reproduce (for bugs)
Screenshots
Your Environment
Additional context
n/a
Hello, thanks for letting me know. It seems it blows up when StrictMode is enabled. I'll look into it. Cheers!
StrictMode
Fixed in 2.1.0 🎉
Example: https://codesandbox.io/s/ecstatic-leaf-x652u4
Amazing! Thank you!
react-animate-height
blows up in React 18. The library is used for an accordion component that animates on state toggle.Code example https://codesandbox.io/s/lingering-wood-tjnu2k?file=/src/App.js
Expected behavior
Clicking 'Open' should expand the component that is wrapped with
<AnimateHeight />
. Instead, it blows upPossible Solution
🤷♂️ 😅
Steps to Reproduce (for bugs)
Screenshots
Your Environment
Additional context
n/a