We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fedb37 commit 1487854Copy full SHA for 1487854
dist/GoogleApiComponent.js
@@ -159,8 +159,13 @@
159
// Initialize with new options
160
this.initialize(options);
161
162
- // Save new options in component state
163
- this.setState({ options: options });
+ // Save new options in component state,
+ // and remove information about previous API handlers
164
+ this.setState({
165
+ options: options,
166
+ loaded: false,
167
+ google: null
168
+ });
169
}
170
}, {
171
key: 'initialize',
@@ -180,9 +185,6 @@
180
185
181
186
// Store information about loading container
182
187
this.LoadingContainer = options.LoadingContainer || DefaultLoadingContainer;
183
-
184
- // Remove information about previous API handlers
- this.setState({ loaded: false, google: null });
188
189
190
key: 'onLoad',
0 commit comments