You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See that the second call will fail with Bad state: Future already completed
Cause of the bug
When getting the RemoteConfig.instance the source code here checks whether the instance was already retrieved.
When calling RemoteConfig.instance twice both of these calls go into the if-statement and try to retrieve the instance.
Then in here both calls to get RemoteConfig.instance try to complete with the instance, but the second one fails as the first one already completed the Completer.
Logs
I hope you don't mind if I did not include any logs here as the fix is pretty obvious ;)
The text was updated successfully, but these errors were encountered:
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Steps to Reproduce
RemoteConfig.instance
twice in parallelBad state: Future already completed
Cause of the bug
When getting the
RemoteConfig.instance
the source code here checks whether the instance was already retrieved.When calling
RemoteConfig.instance
twice both of these calls go into the if-statement and try to retrieve the instance.Then in here both calls to get
RemoteConfig.instance
try to complete with the instance, but the second one fails as the first one already completed the Completer.Logs
I hope you don't mind if I did not include any logs here as the fix is pretty obvious ;)
The text was updated successfully, but these errors were encountered: