Skip to content

Commit a0615f6

Browse files
Cancel the transitionend timer
+ To prevent ReactJS setState warnings involving unmounted components
1 parent 2f23996 commit a0615f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/component/abstract_transition.dart

+1
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ abstract class AbstractTransitionComponent<T extends AbstractTransitionProps,
314314
void componentWillUnmount() {
315315
super.componentWillUnmount();
316316
_isUnmounted = true;
317+
_cancelTransitionEndTimer();
317318
_cancelTransitionEventListener();
318319
}
319320

0 commit comments

Comments
 (0)