From b7a2bf45d0af3b072637f395c003857be020667f Mon Sep 17 00:00:00 2001 From: Josh Beam Date: Thu, 30 Mar 2017 13:30:01 -0400 Subject: [PATCH] Don't call setState when AbstractTransitionComponent is unmounting. This resolves a warning of the form "Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op." --- lib/src/component/abstract_transition.dart | 10 +++++++++- .../component/abstract_transition_test.dart | 20 +++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/lib/src/component/abstract_transition.dart b/lib/src/component/abstract_transition.dart index 540195afd..dc4c7a9b5 100644 --- a/lib/src/component/abstract_transition.dart +++ b/lib/src/component/abstract_transition.dart @@ -281,8 +281,16 @@ abstract class AbstractTransitionComponent