Skip to content

Commit 5cd7168

Browse files
lifecycles (#21)
1 parent 09350b8 commit 5cd7168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Animation extends PureComponent {
1010
this.loadAnimation(this.props);
1111
}
1212

13-
componentWillReceiveProps(nextProps) {
13+
UNSAFE_componentWillReceiveProps(nextProps) {
1414
if (this.props.source && nextProps.source && this.props.source.nm !== nextProps.source.nm) {
1515
this.loadAnimation(nextProps);
1616
}

0 commit comments

Comments
 (0)