Skip to content

Commit

Permalink
Merge pull request #375 from JeremiahChurch/master
Browse files Browse the repository at this point in the history
Fix deprecation message for componentWillReceiveProps
  • Loading branch information
auser authored Feb 5, 2020
2 parents 33f69e9 + ee55828 commit c54f470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GoogleApiComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const wrapper = input => WrappedComponent => {
this.mapRef=React.createRef();
}

componentWillReceiveProps(props) {
UNSAFE_componentWillReceiveProps(props) {
// Do not update input if it's not dynamic
if (typeof input !== 'function') {
return;
Expand Down

0 comments on commit c54f470

Please sign in to comment.