mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
more exercise in 2.9
This commit is contained in:
@@ -15,7 +15,7 @@ export const actionsWithService = {
|
|||||||
return async (dispatch: any, getState: () => Store) => {
|
return async (dispatch: any, getState: () => Store) => {
|
||||||
// Replace the return true with:
|
// Replace the return true with:
|
||||||
// 1. first call the actions.addTodo() function
|
// 1. first call the actions.addTodo() function
|
||||||
// 2. store the resultant id
|
// 2. store the resultant id (because the id was generated by that addTodo() call)
|
||||||
// 3. dispatch the action message generated by that call
|
// 3. dispatch the action message generated by that call
|
||||||
// 4. pass the id and the todo from the state into the service call service.add()
|
// 4. pass the id and the todo from the state into the service call service.add()
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user