Showing componentWillMount deprecated warnings .
See original GitHub issueHow 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:
- Created 4 years ago
- Reactions:9
- Comments:6
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@KevinBurton The repo of this project is unmaintained more than a year, and we had build new version https://www.npmjs.com/package/@react-google-maps/api
We had rewrite it to TypeScript, and updating it frequently: https://github.com/JustFly1984/react-google-maps-api/tree/master/packages/react-google-maps-api You can enjoy autocomplete.
You can see our docs: https://react-google-maps-api-docs.netlify.com/
Also a lot of examples: https://react-google-maps-api-gatsby-demo.netlify.com/ https://github.com/JustFly1984/react-google-maps-api/tree/master/packages/react-google-maps-api-gatsby-example/src/examples
The bundle size is much smaller: https://bundlephobia.com/result?p=@react-google-maps/api@1.7.7
Our Spectrum community: https://spectrum.chat/react-google-maps
Enjoy!
this project is unmaintained more than a year, please look at @react-google-maps/api