Skip to content

Commit

Permalink
fix(authenticator): Only call setState if mounted
Browse files Browse the repository at this point in the history
Fixes #3067.
  • Loading branch information
Dillon Nys committed May 19, 2023
1 parent 80b4908 commit 2b2d0c6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ class _AuthenticatorState extends State<Authenticator> {

Future<void> _waitForConfiguration() async {
final config = await Amplify.asyncConfig;
if (!mounted) return;
setState(() {
_config = config;
_configInitialized = true;
Expand Down

0 comments on commit 2b2d0c6

Please sign in to comment.