diff --git a/develop/utils/props2Stream.js b/develop/utils/props2Stream.js index b241586..3f75fe0 100644 --- a/develop/utils/props2Stream.js +++ b/develop/utils/props2Stream.js @@ -15,7 +15,7 @@ const prop2Stream = (propName, comparator = (a, b) => a === b) => comparator ); - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { this.props$.next(nextProps[propName]); } diff --git a/develop/utils/stream2Props.js b/develop/utils/stream2Props.js index 9ddb5a3..f49659c 100644 --- a/develop/utils/stream2Props.js +++ b/develop/utils/stream2Props.js @@ -10,7 +10,7 @@ const stream2Props = props2Stream => return class extends Component { state = {}; - componentWillMount() { + UNSAFE_componentWillMount() { this.subscription = props2Stream(this.props).subscribe(value => this.setState({ value })); } diff --git a/develop/utils/withStateSelector.js b/develop/utils/withStateSelector.js index 3058ab0..fb0f71f 100644 --- a/develop/utils/withStateSelector.js +++ b/develop/utils/withStateSelector.js @@ -21,7 +21,7 @@ const withStateSelector = (stateName, stateUpdaterName, selectorFactory) => callback ); - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { // reselect memoize result const nextStateValue = this.selector(nextProps); if (nextStateValue !== this.state.stateValue) { diff --git a/src/google_map.js b/src/google_map.js index fe10065..ce01631 100644 --- a/src/google_map.js +++ b/src/google_map.js @@ -293,7 +293,7 @@ export default class GoogleMap extends Component { } } - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { if (process.env.NODE_ENV !== 'production') { if (!shallowEqual(this.props.defaultCenter, nextProps.defaultCenter)) { console.warn(