fix(mobile): reduce server version api calls (#4265)

This commit is contained in:
shenlong 2023-09-29 14:51:54 +00:00 committed by GitHub
parent fb7249d1f6
commit d7e970dcea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -64,10 +64,10 @@ class TabNavigationObserver extends AutoRouterObserver {
}
Store.put(StoreKey.currentUser, User.fromDto(userResponseDto));
ref.read(serverInfoProvider.notifier).getServerVersion();
} catch (e) {
debugPrint("Error refreshing user info $e");
}
}
ref.watch(serverInfoProvider.notifier).getServerVersion();
}
}