diff --git a/index.js b/index.js index 0fd1642..de83503 100644 --- a/index.js +++ b/index.js @@ -21,7 +21,7 @@ const InViewPort = class extends Component { this.stopWatching() } - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { if (nextProps.disabled) { this.stopWatching() } else {