Skip to content

Commit

Permalink
fix: Preserve previous state on async error (#2025)
Browse files Browse the repository at this point in the history
  • Loading branch information
rrousselGit committed Dec 24, 2022
1 parent 8b6d545 commit ffdabd7
Show file tree
Hide file tree
Showing 14 changed files with 373 additions and 227 deletions.
1 change: 1 addition & 0 deletions packages/riverpod/CHANGELOG.md
Expand Up @@ -3,6 +3,7 @@
- Update dependencies.
- fixes an exception on newer Dart versions
- fixes an edge-case where `FutureProvider`/`AsyncNotifier` did not emit the new state when the created `Future` completed (#1997)
- fixes errors inside FutureProvider/AsyncNotifier/StreamProvider not preserving the previous state (if any).

## 2.1.1

Expand Down
1 change: 1 addition & 0 deletions packages/riverpod/lib/riverpod.dart
Expand Up @@ -8,6 +8,7 @@ export 'src/async_notifier.dart'
FamilyAsyncNotifierProviderImpl,
AsyncNotifierBase,
AsyncNotifierProviderBase,
CancelAsyncSubscription,
BuildlessAsyncNotifier,
BuildlessAutoDisposeAsyncNotifier,
FutureHandlerProviderElementMixin;
Expand Down
1 change: 1 addition & 0 deletions packages/riverpod/lib/src/async_notifier.dart
Expand Up @@ -8,6 +8,7 @@ import 'framework.dart';
import 'future_provider.dart' show FutureProvider;
import 'listenable.dart';
import 'notifier.dart';
import 'pragma.dart';
import 'result.dart';

part 'async_notifier/auto_dispose.dart';
Expand Down

0 comments on commit ffdabd7

Please sign in to comment.