From 2bf877e0f7fdfaba992bdc34e179ec68dd5a7453 Mon Sep 17 00:00:00 2001 From: reasje Date: Thu, 23 May 2024 21:53:10 +0330 Subject: [PATCH] fix: order caching bug with local data --- lib/features/dapps/domain/dapp_store_use_case.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/features/dapps/domain/dapp_store_use_case.dart b/lib/features/dapps/domain/dapp_store_use_case.dart index 7e173ad8..d1846250 100644 --- a/lib/features/dapps/domain/dapp_store_use_case.dart +++ b/lib/features/dapps/domain/dapp_store_use_case.dart @@ -15,7 +15,11 @@ class DappStoreUseCase extends ReactiveUseCase { late final ValueStream> dapps = reactive([]); Future loadDapps() async { - loadLocalDApps(); + Future.delayed( + const Duration(seconds: 1), + () => loadLocalDApps(), + ); + await loadRemoteDApps(); }