google-maps-react
google-maps-react copied to clipboard
Warning: Can't call setState on a component that is not yet mounted.
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."
I have the same problem. Anyone can help how to solve it when using react hooks? Thanks!