New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Hot restart" is causing a subsequent call to Amplify.configure
#94
Comments
Hi @Rayv1 thanks for bringing this issue to our attention. Our Amplify Flutter framework currently supports hot reloading but not hot restarting. For now, we recommend hot reloading or stopping and starting the the app in VSCode. Please let us know if that would be a major problem for you and your workflow. We will look into how we might fix this issue in the future. |
Hi @fjnoyp its okay for now. i just comment it out, when using hot restart. |
Hi @fjnoyp, This is a major problem for my workflow - not having the option to hot restart slows me down substantially. What is the behavior if the app is already configured (in Kotlin / Android), and then the Dart VM is restarted? Do I have to configure it again, or will it work with the previous configuration? Would it be possible to add a separate method here to check if the configuration is initialized already? Why wouldn't we allow configuring it a second time, overwriting the previous configuration? 🤔 |
I put it in a try catch Block, so iam still calling it, but when an error appears, iam doing nothing. The authentication Plugin ist ein still working with this work around. |
Describe the bug
PlatformException (PlatformException(AmplifyException, The client issued a subsequent call to
Amplify.configure
after the first had already succeeded., {cause: null, recoverySuggestion: Be sure to only call Amplify.configure once}))To Reproduce
Steps to reproduce the behavior:
Platform
Amplify Flutter current supports iOS and Android. This issue is reproducable in (check all that apply):
[x] Android
[] iOS (cant test)
Additional context
This Error happens in VSCode when hot restarting.
The text was updated successfully, but these errors were encountered: