You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move code with side effects to componentDidMount, and set initial state in the constructor.
Rename componentWillMount to UNSAFE_componentWillMount 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: Steps, Wizard
The text was updated successfully, but these errors were encountered:
resolritter
changed the title
Refactor components using outdated lifecycles to Hooks
React warning: Refactor outdated lifecycles in some components
Jul 4, 2020
resolritter
changed the title
React warning: Refactor outdated lifecycles in some components
React warning: Refactor outdated lifecycle methods in some components
Jul 4, 2020
resolritter
changed the title
React warning: Refactor outdated lifecycle methods in some components
React warning: outdated lifecycle methods in some components
Jul 5, 2020
Wait, I took a look at the code now and noticed those components are exported from react-albus. There isn't a way to refactor them nicely without forking the library.
Someone recently contributed a commit which should get rid of this warning americanexpress/react-albus@528d735, thus the solution would be to simply bump react-albus' version. However, I've looked at the package's page
@zaguiini are you open to adding react-albus as a git dependency until this is sorted out? Or am I missing something about how NPM works?
Another option would be to migrate to a library which's actually maintained, as react-albus's repo seems to have staled in development. I might try that in an MR.
From the DevTools' Console tab
The text was updated successfully, but these errors were encountered: