componentWillMount and dcc.Dropdown

Dash version == 2.18.2

I get this warning when I using dcc.Dropdown.
Do i need to worry? :slight_smile:

Or maybe I should think about some preventive steps so that I won’t be negative surprised later?

Warning:

hook.js:608 Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.

* 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: t

I guess we can use this dcc.Dropdown since it’s included in the tutorial on the Dash Ploty website… :slight_smile:

Hello @Mar7872x,

You don’t need to worry about that, that’s for developers who create the component.

In other news, there is Dash 3 now, which I believe changed the way that this component renders.

Thanks for the information and solution.