We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e144e77 commit 2eb580aCopy full SHA for 2eb580a
README.md
@@ -17,6 +17,13 @@
17
## Effects with RxDart
18
19
```dart
20
+import 'package:flutter_github_search_rx_redux/domain/search_usecase.dart';
21
+import 'package:rx_redux/rx_redux.dart';
22
+import 'package:rxdart_ext/rxdart_ext.dart';
23
+
24
+import 'home_action.dart';
25
+import 'home_state.dart';
26
27
RxReduxStore<HomeAction, HomeState> createStore(SearchUseCase searchUseCase) =>
28
RxReduxStore(
29
initialState: HomeState.initial(),
@@ -107,8 +114,8 @@ class HomeSideEffects {
107
114
)
108
115
.startWith(loadingAction)
109
116
.onErrorReturnWith(
110
- (error) => SearchFailureAction((b) => b
111
- ..error = error
117
+ (e, s) => SearchFailureAction((b) => b
118
+ ..error = e
112
119
..term = term),
113
120
);
121
}
0 commit comments