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 2360122 commit 5a29f67Copy full SHA for 5a29f67
ep28-more-dispatcher-usage/app/stores/TodoStore.js
@@ -4,22 +4,18 @@ AppDispatcher.register(function(action) {
4
5
switch(action.actionType) {
6
case 'TODO_DONE':
7
- console.log("Handling TODO_DONE using dispatcher in store");
8
TodoStore.markTodoDone(action.todo);
9
break;
10
11
case 'TODO_UNDONE':
12
- console.log("Handling TODO_UNDONE using dispatcher in store");
13
TodoStore.markTodoUnDone(action.todo);
14
15
16
case 'TODO_DELETE':
17
- console.log("Handling TODO_DELETE using dispatcher in store");
18
TodoStore.deleteTodo(action.todo);
19
20
21
case 'TODO_ADD':
22
- console.log("Handling TODO_ADD using dispatcher in store");
23
TodoStore.getTodos();
24
25
}
0 commit comments