Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class AppStateReducer implements Reducer<AppState> {
- @Override
- public AppState reduce(AppState state, Action action) {
- //pseudocode
- List<TodoItem> items = reduceItems(state.todoItems, action);
- TodoFilter filter = reduceFilter(state.filter, action);
- return new AppState(items, filter);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement