MCPcopy
hub / github.com/reduxjs/redux / fetchStarred

Function fetchStarred

examples/real-world/src/actions/index.js:59–66  ·  view source on GitHub ↗
(login, nextPageUrl)

Source from the content-addressed store, hash-verified

57// Fetches a page of starred repos by a particular user.
58// Relies on the custom API middleware defined in ../middleware/api.js.
59const 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.

Callers 1

loadStarredFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected