Skip to content

Commit

Permalink
Use ref.invalidate inside onRetry
Browse files Browse the repository at this point in the history
  • Loading branch information
bizz84 committed Jan 17, 2024
1 parent bb76f9b commit 7c49dce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/app_startup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ class AppStartupWidget extends ConsumerWidget {
loading: () => const AppStartupLoadingWidget(),
error: (e, st) => AppStartupErrorWidget(
message: e.toString(),
onRetry: () => ref.refresh(appStartupProvider),
onRetry: () {
ref.invalidate(onboardingRepositoryProvider);
ref.invalidate(appStartupProvider);
},
),
);
}
Expand Down

0 comments on commit 7c49dce

Please sign in to comment.