(login, nextPageUrl)
| 57 | // Fetches a page of starred repos by a particular user. |
| 58 | // Relies on the custom API middleware defined in ../middleware/api.js. |
| 59 | const fetchStarred = (login, nextPageUrl) => ({ |
| 60 | login, |
| 61 | [CALL_API]: { |
| 62 | types: [ STARRED_REQUEST, STARRED_SUCCESS, STARRED_FAILURE ], |
| 63 | endpoint: nextPageUrl, |
| 64 | schema: Schemas.REPO_ARRAY |
| 65 | } |
| 66 | }) |
| 67 | |
| 68 | // Fetches a page of starred repos by a particular user. |
| 69 | // Bails out if page is cached and user didn't specifically request next page. |