mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 09:17:37 +00:00
hot reload init fix
This commit is contained in:
parent
2ada2d5bde
commit
7fa827cbc6
1 changed files with 7 additions and 0 deletions
|
@ -176,7 +176,14 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
|
|||
|
||||
late final Completer<void> loadingCompleter;
|
||||
|
||||
bool didLoad = false;
|
||||
|
||||
Future<void> load() async {
|
||||
if (didLoad) {
|
||||
return;
|
||||
}
|
||||
didLoad = true;
|
||||
|
||||
await DB.instance.init();
|
||||
|
||||
_notificationsService = ref.read(notificationsProvider);
|
||||
|
|
Loading…
Reference in a new issue