Skip to content

Instantly share code, notes, and snippets.

View restlessmedia's full-sized avatar
🎯
Focusing

Phil Cooper restlessmedia

🎯
Focusing
View GitHub Profile
const createPaginator = (endpoint, resultKey) => {
const createRequestPageActionCreator = (endpoint, resultKey) => (page) => requestPage(endpoint, resultKey, page)
const requestPage = (page) => ({
type: 'REQUEST_PAGE',
payload: {
page
},
meta: {