chenqingspring / react-lottie

Render After Effects animations on React based on lottie-web
MIT License
1.66k stars 363 forks source link

Move data fetching code or side effects to componentDidUpdate. #119

Open itrevex opened 4 years ago

itrevex commented 4 years ago

Rename componentWillUpdate to UNSAFEcomponentWillUpdate to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE name will work. To rename all deprecated lifecycles to their new names, you can run npx react-codemod rename-unsafe-lifecycles in your project source folder.

Issue poping all the time that may need fixing

HimathPerera commented 3 years ago

I have the same issue!!!! need a fix

sundardsTechMind commented 3 years ago

I'm also facing this issue in react-native 0.61.5 tried this command also but same issue ( npx react-codemod rename-unsafe-lifecycles) RN Issue

orchuban commented 3 years ago

react-dom.development.js:88 Warning: componentWillUpdate has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.

Please update the following components: Lottie

It's in react.js

image