google-maps-react icon indicating copy to clipboard operation
google-maps-react copied to clipboard

Warning: Can't call setState on a component that is not yet mounted.

Open S-Nakib opened this issue 4 years ago • 1 comments

Currently, I am using react 16.13.1 and google-maps-react 2.0.6. I am getting this warning on using Map and GoogleAPIWrapper, "Warning: Can't call setState on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to this.state directly or define a state = {}; class property with the desired state in the Wrapper component."

S-Nakib avatar Sep 16 '20 17:09 S-Nakib

I have the same problem. Anyone can help how to solve it when using react hooks? Thanks!

roee030 avatar Aug 05 '21 08:08 roee030