MicheleBertoli / react-gmaps

A Google Maps component for React.js
http://react-gmaps.herokuapp.com/
MIT License
317 stars 68 forks source link

added UNSAFE to componentWillReceiveProps methods to remove console warnings in React v16.3+ #128

Closed navivanuva closed 1 year ago

navivanuva commented 3 years ago

Hi there, I really love using this repository for my projects, but I noticed that it has not been updated in over 3 years. The map works really great, but there's a small problem on the method componentWillReceiveProps which has been deprecated since react v1.6.3. A warning keeps popping up in the console. So, following the react docs, I added “UNSAFE_” to the methods, and it works fine when I tested it. Thanks

MicheleBertoli commented 1 year ago

Thanks for your feedback and contribution, @navivanuva

I'm closing this issue in favour of #130