Advertisement · 728 × 90

Posts by Shu

This is actually really funny to me. While react developers are criticizing RSCs because it's viewed as abandoning SPAs, anti-react developers are criticizing react SPAs by citing issues from the 2010s solved by RSC.

1 year ago 33 3 2 0

it's supported!

1 year ago 1 0 0 0

haha yea, I should also make it a blog post too

1 year ago 0 0 0 0
Post image
1 year ago 29 0 1 0
Post image

The making of cobe.vercel.app. I’ll see if I have time to improve the perf & add marker overlay to it during the holidays

1 year ago 37 1 3 0

there were "use asm" and others

stackoverflow.com/questions/69...

1 year ago 1 0 0 0

it’s still the same, the issue is that when moving an iframe node in DOM tree, all its state gets lost so the preloaded cache will be gone 😢

the core problem is that there’s no way for a new iframe element to reuse any existing cache

1 year ago 2 0 0 0

that works, but in my case it’s more like preloading an iframe for the next navigation (not the current page)

1 year ago 1 0 1 0
Advertisement

yeah I think that might be why they removed `link rel=preload as=document` :/

1 year ago 2 0 0 0

yeah, but how do I *pre*load it? like developer.mozilla.org/en-US/docs/W... but for iframes

1 year ago 0 0 1 0

what’s the way to preload an <iframe> in 2024?

all I found on the internet was lazy loading it

1 year ago 9 0 3 0

Flighty

1 year ago 1 0 0 0
Video

Trying View Transitions in Next.js using @shud.in’s next-view-transitions library. Love how straight-forward this was.

github.com/shuding/next...

1 year ago 71 2 1 0

thanks Addy!

1 year ago 1 0 1 0

don’t useEffect, but if you must, don’t call setState in it

1 year ago 209 29 16 5
Advertisement

haha I love faster machines but… I love the recent React Scan + GitHub.com improvements more

1 year ago 3 0 0 0

nooooo I don’t want to lose the joy of optimizing our code 🥹

1 year ago 7 0 0 0

I recently switched from a 8GB RAM MacBook Air to a 36GB M4 Pro. Things become much smoother (literally ship 2x more PRs) but I wish someday I can instead optimize my tools and go back to my 8GB Air :/

1 year ago 98 1 20 1

ohhhh

1 year ago 1 0 0 0

const get = use (v) => {
side effects
return () => {
cleanup v
return v’
}
}

// useState + useEffect in one hook? maybe a language

1 year ago 14 0 2 0
Video Game Club Historical records of the Video Game Club

aww sf-game-club.vercel.app

1 year ago 3 0 1 0

SF!

1 year ago 1 0 0 0
Post image
1 year ago 21 0 1 0
Advertisement

that’s better than mine first try!!

1 year ago 1 0 1 0

thank uuu

1 year ago 1 0 0 0

i {
z-index: sky;
}

1 year ago 46 2 2 0

Balatro!

1 year ago 2 0 0 0
A screenshot of a list of 9 iOS games including sudoku, Euclidean, Balatro, Loop Hero, etc

A screenshot of a list of 9 iOS games including sudoku, Euclidean, Balatro, Loop Hero, etc

10/10

1 year ago 29 0 3 0

me too! but I’ll be back in town soon!!

1 year ago 0 0 0 0

thanks!! i'll check out

1 year ago 0 0 0 0