Skip to content

Commit

Permalink
Merge pull request #1 from KloudTrader/master
Browse files Browse the repository at this point in the history
Update outdated methods
  • Loading branch information
changey authored Jul 13, 2020
2 parents f890fae + 33f2bac commit e952884
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
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 e952884

Please sign in to comment.