-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Hi,
Really enjoying the library for some personal projects. Wanted to know what you'd recommend for caching the ajax request, for example:
const mostStarredRepos = pipe(
switchMap(() => ajax(`https://api.github.com/users/moimikey/repos?sort=updated`)),
pluck('response'),
map(sortByStars),
memoize(map(arr => arr.slice(0, 5)))
)or unwrap/rewrap
async function getRecentRepos () {
if (await getCache('recent')) {
return getCache('recent')
}
// any way to unwrap the pipe?
//
await setCache('recent', recentRepos)
return recentRepos
}wanted some 2cents. thanks. /cc @johnlindquist
Metadata
Metadata
Assignees
Labels
No labels