DX Engineer. Building with Next.js and React.
Switch account
Pushed v1.0 of the design tokens library we use internally. 200 stars overnight, which I did not expect on a Tuesday. Thanks to whoever shared it. #opensource
Added formatting to the Drop composer. You can write bold, italic, and code blocks now, and there's a Preview toggle so you can check a drop before posting. The preview renders on the server with the same component the feed uses, so it matches exactly. Try it and tell me what breaks. #shipping
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)
}