|
584 | 584 | ],
|
585 | 585 | "actions": [
|
586 | 586 | "open('src/index.js')"
|
| 587 | + ], |
| 588 | +"hints": [ |
| 589 | +"Try this: `npm install --save redux-thunk`" |
587 | 590 | ]
|
588 | 591 | },
|
589 | 592 | {
|
590 |
| -"description":"importthunk from\"redux-thunk\"", |
| 593 | +"description":"import`reduxThunk` from\"redux-thunk\"", |
591 | 594 | "tests": [
|
592 | 595 | "10/02"
|
| 596 | + ], |
| 597 | +"hints": [ |
| 598 | +"Try this: `import reduxThunk from 'redux-thunk';`" |
593 | 599 | ]
|
594 | 600 | },
|
595 | 601 | {
|
596 |
| -"description":"addthunk to applyMiddleware. The logger should always go last", |
| 602 | +"description":"add`reduxThunk` to applyMiddleware. The logger should always go last", |
597 | 603 | "tests": [
|
598 | 604 | "10/03"
|
| 605 | + ], |
| 606 | +"hints": [ |
| 607 | +"Try this: `applyMiddleware(reduxThunk, logger)`" |
599 | 608 | ]
|
600 | 609 | },
|
601 | 610 | {
|
602 |
| -"description":"change the voteUp action creator to return a thunk with the param of\"dispatch\"", |
| 611 | +"description":"change the`voteUp` action creator in\"src/pokemon/index.js\" to return a thunk with the param of\"dispatch\"", |
603 | 612 | "tests": [
|
604 | 613 | "10/04"
|
| 614 | + ], |
| 615 | +"hints": [ |
| 616 | +"`Try this: `const voteUp => (id) => (dispatch) => {}`'" |
605 | 617 | ]
|
606 | 618 | },
|
607 | 619 | {
|
608 |
| -"description":"voteUp should dispatch VOTE_UP", |
| 620 | +"description":"voteUp` should dispatch`VOTE_UP", |
609 | 621 | "tests": [
|
610 | 622 | "10/05"
|
| 623 | + ], |
| 624 | +"hints": [ |
| 625 | +"Try this: `const voteUp => (id) => (dispatch) => dispatch(voteUp(id))`" |
611 | 626 | ]
|
612 | 627 | },
|
613 | 628 | {
|
614 |
| -"description":"voteUp should dispatch sortByPopularity after each vote", |
| 629 | +"description":"`voteUp` shouldalsodispatch`sortByPopularity after each vote", |
615 | 630 | "tests": [
|
616 | 631 | "10/06"
|
| 632 | + ], |
| 633 | +"hints": [ |
| 634 | +"Try this: `const voteUp => (id) => (dispatch) => { ... dispatches ... }`", |
| 635 | +"Add: `dispatch(sortByPopularity());`", |
| 636 | +"Try this: `const voteUp => (id) => (dispatch) => { dispatch(voteUp(id); dispatch(sortByPopularity()))}`" |
617 | 637 | ]
|
618 | 638 | }
|
619 | 639 | ],
|
|