Skip to content

Commit 8a037f9

Browse files
committed
Fix getDerivedStateFromProps Return undefined Warn
1 parent 4f6cdac commit 8a037f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TweenOne.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class TweenOne extends Component {
4848
if (prevProps && props !== prevProps) {
4949
if (!$self.tween && !$self.dom) {
5050
$self.updateAnim = true;
51-
return;
51+
return null;
5252
}
5353

5454
// 动画处理

0 commit comments

Comments
 (0)