diff --git a/src/GoogleApiComponent.js b/src/GoogleApiComponent.js index 0e2d261c..ff932fac 100644 --- a/src/GoogleApiComponent.js +++ b/src/GoogleApiComponent.js @@ -55,7 +55,7 @@ export const wrapper = input => WrappedComponent => { this.mapRef=React.createRef(); } - UNSAFE_componentWillReceiveProps(props) { + componentDidUpdate(props) { // Do not update input if it's not dynamic if (typeof input !== 'function') { return; @@ -75,11 +75,11 @@ export const wrapper = input => WrappedComponent => { // Save new options in component state, // and remove information about previous API handlers - this.setState({ + this.state= { options: options, loaded: false, google: null - }); + }; } componentWillUnmount() { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy