Warning: ForwardRef: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.
mmkal opened this issue · 4 comments
mmkal commented
I get this console.error message in my component that wraps react-lottie-player:
Warning: ForwardRef: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.
version 1.5.4
edit: should mention, everything works fine and it's still useful! just looking to get rid of the error message
mifi commented
should be this line:
react-lottie-player/src/makeLottiePlayer.js
Line 210 in d730f8b
KDederichs commented
That looks like it yup.
Basically just moving that into the Component method signature should fix it
selven commented
I've opened a PR for this, let me know if you want any changes
mifi commented
now fixed