question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Showing componentWillMount deprecated warnings .

See original GitHub issue

How to fix this following warnings. I’m sure we are not using anywhere componentWillMount method in our project.

breadcrumbs.js:76 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: withGoogleMap(Component)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:9
  • Comments:6

github_iconTop GitHub Comments

4reactions
JustFly1984commented, Aug 14, 2019

this project is unmaintained more than a year, please look at @react-google-maps/api

Read more comments on GitHub >

github_iconTop Results From Across the Web

componentWillMount is deprecated and will be removed in the ...
componentWillMount () is invoked just before mounting occurs. It is called before render(), therefore calling setState() synchronously in this ...
Read more >
React: componentWillMount to be deprecated! - Northcoders
Starting with React v16.3.0, new versions of these methods categorised as unsafe have be created, and the legacy versions will come with deprecation...
Read more >
Warning componentwillmount is Deprecated and will be ...
This warning message is a temporary message and will be removed soon with the new react native version but its very irritating so...
Read more >
React Native Solve Warning componentwillmount is ...
Warning : componentWillMount is deprecated and will be removed in the next major version. Use componentDidMount instead. As a temporary ...
Read more >
React Journey: componentWillMount in Concurrent Mode
Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found