Skip to content

Commit c54f470

Browse files
authoredFeb 5, 2020
Merge pull request #375 from JeremiahChurch/master
Fix deprecation message for componentWillReceiveProps
2 parents 33f69e9 + ee55828 commit c54f470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/GoogleApiComponent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const wrapper = input => WrappedComponent => {
5555
this.mapRef=React.createRef();
5656
}
5757

58-
componentWillReceiveProps(props) {
58+
UNSAFE_componentWillReceiveProps(props) {
5959
// Do not update input if it's not dynamic
6060
if (typeof input !== 'function') {
6161
return;

0 commit comments

Comments
 (0)
Please sign in to comment.