React-instantsearch: React 16.9 Deprecation Warnings - componentWillMount rename

Created on 20 Sep 2019  路  3Comments  路  Source: algolia/react-instantsearch

I'm currently getting console warnings from to prepare for React 17's componentWillMount rename:

Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks 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: AlgoliaAutoComplete(withWindowWidth(SearchBarInput)), 

Also getting it for these:

AlgoliaConfigure(UnknownComponent), CreateInstantSearch, InstantSearch
AlgoliaHighlighter(Highlight)

Are there any plans to handle this so the warnings go away?

Most helpful comment

We released a new beta version 6.0.0-beta.0 with support for the upcoming React 17. You can read more about it on Discourse.

Try installing it and let us know how it goes!

All 3 comments

We released a new beta version 6.0.0-beta.0 with support for the upcoming React 17. You can read more about it on Discourse.

Try installing it and let us know how it goes!

Which branch in the repo should I be looking at for this? thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aaronbushnell picture aaronbushnell  路  4Comments

markmiller21 picture markmiller21  路  3Comments

developerk786 picture developerk786  路  3Comments

noclat picture noclat  路  3Comments

flouc001 picture flouc001  路  5Comments