Shu's Avatar

Shu

@shud.in

only raw thoughts here (like very raw, with typos)

6,254
Followers
143
Following
155
Posts
27.04.2023
Joined
Posts Following

Latest posts by Shu @shud.in

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.

02.12.2024 21:43 πŸ‘ 33 πŸ” 3 πŸ’¬ 2 πŸ“Œ 0

it's supported!

03.12.2024 16:39 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

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

03.12.2024 16:38 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image
03.12.2024 16:00 πŸ‘ 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

30.11.2024 16:34 πŸ‘ 37 πŸ” 1 πŸ’¬ 3 πŸ“Œ 0

there were "use asm" and others

stackoverflow.com/questions/69...

30.11.2024 01:44 πŸ‘ 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

29.11.2024 03:28 πŸ‘ 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)

29.11.2024 01:54 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

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

28.11.2024 11:56 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

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

28.11.2024 11:54 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

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

all I found on the internet was lazy loading it

28.11.2024 02:59 πŸ‘ 9 πŸ” 0 πŸ’¬ 3 πŸ“Œ 0

Flighty

26.11.2024 00:51 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

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

github.com/shuding/next...

24.11.2024 22:29 πŸ‘ 71 πŸ” 2 πŸ’¬ 1 πŸ“Œ 0

thanks Addy!

24.11.2024 22:38 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

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

23.11.2024 16:20 πŸ‘ 209 πŸ” 29 πŸ’¬ 16 πŸ“Œ 5

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

23.11.2024 18:01 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

nooooo I don’t want to lose the joy of optimizing our code πŸ₯Ή

23.11.2024 17:53 πŸ‘ 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 :/

23.11.2024 17:37 πŸ‘ 98 πŸ” 1 πŸ’¬ 20 πŸ“Œ 1

ohhhh

23.11.2024 17:32 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

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

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

23.11.2024 06:36 πŸ‘ 14 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0
Video Game Club Historical records of the Video Game Club

aww sf-game-club.vercel.app

23.11.2024 03:44 πŸ‘ 3 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

SF!

18.11.2024 16:58 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image
18.11.2024 16:57 πŸ‘ 21 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

that’s better than mine first try!!

13.11.2024 03:10 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

thank uuu

11.11.2024 18:07 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

i {
z-index: sky;
}

11.11.2024 17:29 πŸ‘ 46 πŸ” 2 πŸ’¬ 2 πŸ“Œ 0

Balatro!

11.11.2024 07:30 πŸ‘ 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

11.11.2024 06:40 πŸ‘ 29 πŸ” 0 πŸ’¬ 3 πŸ“Œ 0

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

10.11.2024 23:54 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

thanks!! i'll check out

10.11.2024 21:40 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0