Skip to content

Commit 8776144

Browse files
committed
update getDerivedStateFromProps
1 parent 3d2129b commit 8776144

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
@@ -45,7 +45,7 @@ class TweenOne extends Component {
4545
const nextState = {
4646
prevProps: props,
4747
};
48-
if (prevProps) {
48+
if (prevProps && props !== prevProps) {
4949
if (!$self.tween && !$self.dom) {
5050
$self.updateAnim = true;
5151
return;

0 commit comments

Comments
 (0)