From 7b78e660cb17fc2cd6158675448b6bb7cff89b6d Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Tue, 14 Jan 2020 14:46:36 +0800 Subject: [PATCH] fix: reset gql client on change --- lib/models/auth.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/models/auth.dart b/lib/models/auth.dart index 9e6dd49..33d1fa1 100644 --- a/lib/models/auth.dart +++ b/lib/models/auth.dart @@ -184,6 +184,7 @@ class AuthModel with ChangeNotifier { void setActiveAccountIndex(int index) { activeAccountIndex = index; + _gqlClient = null; notifyListeners(); }