Skip to content

Commit

Permalink
fix: 🐛 home_providers_keepalive error
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Dec 20, 2024
1 parent 2e442bb commit 5244493
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lib/ui/views/main/components/home_providers_keepalive.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import 'package:aewallet/ui/views/main/bloc/providers.dart';
import 'package:archethic_dapp_framework_flutter/archethic_dapp_framework_flutter.dart'
as aedappfm;
import 'package:flutter/widgets.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

Expand Down Expand Up @@ -41,7 +43,19 @@ class _LoggedInProvidersState extends ConsumerState<HomeProvidersKeepalive>
await ref.read(homePageProvider.notifier).stopSubscriptions();
break;
case AppLifecycleState.resumed:
await ref.read(homePageProvider.notifier).startSubscriptions();
await ref
.read(
aedappfm.CoinPriceProviders.coinPrices.notifier,
)
.startTimer();
await ref
.read(
aedappfm.ArchethicOracleUCOProviders.archethicOracleUCO.notifier,
)
.startSubscription();

// TODO(Chralu): Check Issue https://github.com/archethic-foundation/archethic-wallet/issues/1199
// await ref.read(homePageProvider.notifier).startSubscriptions();
break;
case AppLifecycleState.inactive:
case AppLifecycleState.detached:
Expand Down

0 comments on commit 5244493

Please sign in to comment.