Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 home_providers_keepalive error #1200

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading