We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fe104cd + 4e93077 commit 32105eaCopy full SHA for 32105ea
src/GoogleApiComponent.js
@@ -55,7 +55,7 @@ export const wrapper = input => WrappedComponent => {
55
this.mapRef=React.createRef();
56
}
57
58
- UNSAFE_componentWillReceiveProps(props) {
+ componentDidUpdate(props) {
59
// Do not update input if it's not dynamic
60
if (typeof input !== 'function') {
61
return;
@@ -75,11 +75,11 @@ export const wrapper = input => WrappedComponent => {
75
76
// Save new options in component state,
77
// and remove information about previous API handlers
78
- this.setState({
+ this.state= {
79
options: options,
80
loaded: false,
81
google: null
82
- });
+ };
83
84
85
componentWillUnmount() {
0 commit comments