Skip to content

Commit da300e4

Browse files
committed
add print statement to show action was handled
1 parent eeda4ec commit da300e4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

example/lib/reducers/app_state.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ abstract class AppStateActions extends ReduxActions {
2424
_setCurrentGroupReducer(AppState state, Action<int> action, AppStateBuilder builder) =>
2525
builder..currentGroup = action.payload;
2626

27-
_setBogus(AppState state, Action<int> action, AppStateBuilder builder) =>
28-
builder..bogus += action.payload;
27+
_setBogus(AppState state, Action<int> action, AppStateBuilder builder) {
28+
print("set bogus handled");
29+
return builder..bogus += action.payload;
30+
}
2931

3032
final _reducers = (new ReducerBuilder<AppStateBuilder>()
3133
..add<int>(AppStateActionsNames.setCurrentGroup, _setCurrentGroupReducer)

0 commit comments

Comments
 (0)