When we called pushReplacementNamed on sign-out, we only replaced the AccountDialog that was still opened. Therefore, the old SignedInScreen remained open, which lead to various bugs:
183: The old SignedInScreen was rebuilt after signing out, but no token was available.
237: Somehow, the old state was still kept. This led to GlobalKeys being used multiple times and also old routes being reopened even when signing in with a different account.
Closes: #183, closes: #237
When we called
pushReplacementNamed
on sign-out, we only replaced theAccountDialog
that was still opened. Therefore, the oldSignedInScreen
remained open, which lead to various bugs:183: The old
SignedInScreen
was rebuilt after signing out, but no token was available.237: Somehow, the old state was still kept. This led to
GlobalKey
s being used multiple times and also old routes being reopened even when signing in with a different account.