Skip to content

Commit acb66e3

Browse files
authored
Merge pull request #84 from sungsong88/master
UNSAFE_ applied to TriggeringView to mute the warnings
2 parents e219658 + 128d730 commit acb66e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/TriggeringView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ class TriggeringView extends Component<Props, State> {
6868
this.initialPageY = 0;
6969
}
7070

71-
componentWillMount() {
71+
UNSAFE_componentWillMount() {
7272
if (!this.context.scrollY) {
7373
return;
7474
}
7575
this.listenerId = this.context.scrollY.addListener(this.onScroll);
7676
}
7777

78-
componentWillReceiveProps(nextProps: Props, nextContext: Context) {
78+
UNSAFE_componentWillReceiveProps(nextProps: Props, nextContext: Context) {
7979
if (!this.context.scrollY) {
8080
return;
8181
}

0 commit comments

Comments
 (0)