lottie-react-web
lottie-react-web copied to clipboard
Fix `componentWillUpdate` has been renamed warning
Moves the extraction of props and eventListeners logic from componentWillUpdate
to componentDidUpdate
. This fixes the following warning from the console:
Warning: componentWillUpdate has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.
* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate 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.
Please update the following components: Lottie
@felippenardi - could we have this merged in please? 🙏🏻
would be nice to have this warning removed 👍
Is it possible to get this merged? Would be awesome to get this error removed
@felippenardi there is possible to get any news about the merge of this PR? Thanks