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 134b9d0 commit eca4c4aCopy full SHA for eca4c4a
lib/src/create_reducer.dart
@@ -53,10 +53,10 @@ class _ActionReducerMapBuilder<State>
53
return _actionsMap[action.runtimeType];
54
}
55
56
- if (_actionMatchers.keys.any((matcher) => matcher(action))) {
57
- return _actionMatchers.entries
58
- .firstWhere((element) => element.key(action))
59
- .value;
+ for (final entry in _actionMatchers.entries) {
+ if (entry.key(action)) {
+ return entry.value;
+ }
60
61
62
return _defaultCaseReducer;
0 commit comments