Switch account
The following feed in Drop is cached per user and invalidated on write. It comes down to one `'use cache'` function with a tag: #opensource #nextjs
async function getFeed(handle) {
'use cache'
cacheTag(`feed-${handle}`)
return db.drops.forFollowing(handle)
}No replies yet
Be the first to reply.