Skip to content

Commit

Permalink
fix(authenticator): Only call setState if mounted (aws-amplify#3076)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnys1 authored and Stivenmore committed Jun 9, 2023
1 parent eeb11f4 commit fed1b8f
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 fed1b8f

Please sign in to comment.