Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
bizz84 committed Mar 19, 2024
1 parent 2e1554d commit d38e0af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions lib/src/routing/app_startup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@ import 'package:starter_architecture_flutter_firebase/src/features/onboarding/da

part 'app_startup.g.dart';

// https://codewithandrea.com/articles/robust-app-initialization-riverpod/
@Riverpod(keepAlive: true)
Future<void> appStartup(AppStartupRef ref) async {
ref.listen(onboardingRepositoryProvider, (previous, current) {
if (current.hasError) {
// keep track of error so the provider can be rebuilt on retry
}
});
ref.onDispose(() {
// ensure dependent providers are disposed as well
ref.invalidate(onboardingRepositoryProvider);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/routing/app_startup.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d38e0af

Please sign in to comment.