Committed by
GitHub
Update rx_notifier.dart
fix refresh() not called when status equals to SuccessState
Showing
1 changed file
with
0 additions
and
1 deletions
@@ -46,7 +46,6 @@ mixin StateMixin<T> on ListNotifier { | @@ -46,7 +46,6 @@ mixin StateMixin<T> on ListNotifier { | ||
46 | _status = newStatus; | 46 | _status = newStatus; |
47 | if (newStatus is SuccessState<T>) { | 47 | if (newStatus is SuccessState<T>) { |
48 | _value = newStatus.data!; | 48 | _value = newStatus.data!; |
49 | - return; | ||
50 | } | 49 | } |
51 | refresh(); | 50 | refresh(); |
52 | } | 51 | } |
-
Please register or login to post a comment