justinrhodes1 / react-power-tooltip

A powerful and flexible React tooltip and menu library.
https://justinrhodes1.github.io/react-power-tooltip/
MIT License
142 stars 15 forks source link

react-unsafe-component-lifecycles waring #5

Open cmoreno-sf opened 4 years ago

cmoreno-sf commented 4 years ago

Hi @justinrhodes1, thanks for library.

When I test components that include the library I am getting the following warning

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: Tooltip

It is possible to update it to fix it.

Thank you

justinrhodes1 commented 4 years ago

@cmoreno-sf Sure! I will work on a new version over the weekend and fix that.

code-angels commented 4 years ago

Hi, any news on the release date?

cmoreno-sf commented 4 years ago

@code-angels No yet

Hainesy commented 4 years ago

This is holding up an upgrade to React 17, any eta?

ppprevost commented 3 years ago

+1

ncesar commented 2 years ago

I have created a package that fix this bug and is based on this package. Try: npm i react-power-tooltip-hooks