Skip to content

Commit

Permalink
update outdated method
Browse files Browse the repository at this point in the history
  • Loading branch information
Immortalin committed Jul 3, 2020
1 parent 0fb88d1 commit 33f2bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const InViewPort = class extends Component<Iprops> {
this.stopWatching()
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (nextProps.disabled) {
this.stopWatching()
} else {
Expand Down

0 comments on commit 33f2bac

Please sign in to comment.