Shu(@shuding_) 's Twitter Profileg
Shu

@shuding_

Core team @nextjs, @vercel AI. @v0, Satori, SWR creator. Don’t talk unless you can improve the silence.

ID:517723461

linkhttp://shud.in calendar_today07-03-2012 16:09:17

2,5K Tweets

35,7K Followers

2,2K Following

v0(@v0) 's Twitter Profile Photo

New features in v0.dev:

◆ Font families
◆ Customizable border radius
◆ Responsive device viewer

Check out the example: v0.dev/t/7PDZfSZ68w8

account_circle
Shu(@shuding_) 's Twitter Profile Photo

The reason was, I saw this pattern of preloading resources:

let userPromise = loadUser()
// other tasks..
try {
let user = await userPromise
// ..
} catch {
// handle user load failure
}

And this might be a footgun if the sync function throws before returning a promise:

The reason was, I saw this pattern of preloading resources: let userPromise = loadUser() // other tasks.. try { let user = await userPromise // .. } catch { // handle user load failure } And this might be a footgun if the sync function throws before returning a promise:
account_circle
Lee Robinson(@leeerob) 's Twitter Profile Photo

We're also working on a new version of SWR 👀

You can kick off data fetches eagerly and return the initial data during SSR, integrating with Suspense.

You get streaming support, automatic deduping of requests, and more—all without changing your component data fetches.

account_circle
Shu(@shuding_) 's Twitter Profile Photo

Let’s say `f()` returns a promise:

async function a() { return f() }
async function b() { return await f() }
function c() { return f() }

account_circle