From 23daa41e5f6940a4ec0944636ec6303ca300716e Mon Sep 17 00:00:00 2001 From: trm11tkr Date: Thu, 11 Apr 2024 11:57:59 +0900 Subject: [PATCH] fix(github_repository): invalidate provider when recovering from initial error. --- .../src/ui/provider/github_repository_list_notifier.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/features/github_repository/lib/src/ui/provider/github_repository_list_notifier.dart b/packages/features/github_repository/lib/src/ui/provider/github_repository_list_notifier.dart index 25f546e3..89e6bf00 100644 --- a/packages/features/github_repository/lib/src/ui/provider/github_repository_list_notifier.dart +++ b/packages/features/github_repository/lib/src/ui/provider/github_repository_list_notifier.dart @@ -34,4 +34,10 @@ class PageBasedGithubRepositoryNotifier hasMore: res.hasMore, ); } + + @override + void forceRefresh() { + ref.invalidate(listOrganizationRepositoriesProvider); + super.forceRefresh(); + } }