diff --git a/app/lib/features/web_feed/presentation/controllers/fetch_articles.dart b/app/lib/features/web_feed/presentation/controllers/fetch_articles.dart index 973fd604..f4ae86d4 100644 --- a/app/lib/features/web_feed/presentation/controllers/fetch_articles.dart +++ b/app/lib/features/web_feed/presentation/controllers/fetch_articles.dart @@ -24,7 +24,7 @@ import 'package:weblibre/features/web_feed/domain/services/feed_reader.dart'; part 'fetch_articles.g.dart'; -@Riverpod() +@Riverpod(keepAlive: true) class FetchArticlesController extends _$FetchArticlesController { Future fetchAllArticles() async { state = const AsyncLoading(); diff --git a/app/lib/features/web_feed/presentation/controllers/fetch_articles.g.dart b/app/lib/features/web_feed/presentation/controllers/fetch_articles.g.dart index 0123face..5c38ac66 100644 --- a/app/lib/features/web_feed/presentation/controllers/fetch_articles.g.dart +++ b/app/lib/features/web_feed/presentation/controllers/fetch_articles.g.dart @@ -20,7 +20,7 @@ final class FetchArticlesControllerProvider argument: null, retry: null, name: r'fetchArticlesControllerProvider', - isAutoDispose: true, + isAutoDispose: false, dependencies: null, $allTransitiveDependencies: null, ); @@ -42,7 +42,7 @@ final class FetchArticlesControllerProvider } String _$fetchArticlesControllerHash() => - r'7604d9352da886624c3cf6862b89c397edda1f28'; + r'c198a1c1200aaeb6095fbc6ebe41b3069f1de7cc'; abstract class _$FetchArticlesController extends $Notifier> { AsyncValue build();