Adam Rackis's Avatar

Adam Rackis

@adamrackis.bsky.social

Senior Web Engineer at Spotify. Prev, Riot. Next, React, Svelte, C++ when I'm feeling nasty. Beer, whiskey, coffee snob. Book lover. Jr Developer for life.

5,103 Followers  |  269 Following  |  770 Posts  |  Joined: 23.04.2023  |  1.9851

Latest posts by adamrackis.bsky.social on Bluesky

Unexpected Ballmer peak

30.07.2025 21:40 β€” πŸ‘ 431    πŸ” 31    πŸ’¬ 18    πŸ“Œ 0

How has this not leaked by now

22.07.2025 17:24 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Introducing Zustand (State Management) Zustand is a minimal, but fun and effective state management library which just may improve your render performance.

Zustand is one of those wonderfully simple, fun tools you get hooked on pretty quick.

I can't believe it took me this long to discover, but I wrote up a quick intro on it. Better late than never 😬

frontendmasters.com/blog/introdu...

21.07.2025 20:03 β€” πŸ‘ 44    πŸ” 1    πŸ’¬ 3    πŸ“Œ 0

WHO DOESN'T :D

20.07.2025 21:26 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Sorry to be dumb but what does AI have to do with this?

20.07.2025 20:42 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
Post image Post image

AI is evolving at a terrifying rate

19.07.2025 02:32 β€” πŸ‘ 16    πŸ” 1    πŸ’¬ 2    πŸ“Œ 0

stay mad 😘

07.07.2025 16:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

hahahahahaha

07.07.2025 16:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I just had my first angry reply-guy in my mentions!

Bluesky is maturing!

Congrats y'all πŸš€

07.07.2025 16:30 β€” πŸ‘ 32    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Oh no a useless reply guy doesn’t like me what will I do 😬

07.07.2025 16:19 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

no u

07.07.2025 16:10 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Holy shit you're pressed we don't run into re-render perf issues lmaoooooo

07.07.2025 16:03 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I don't use Zustand at all at work. I just work with talented engineers so I never, ever deal with render perf problems. That's why I was wondering what I was wondering πŸ€·β€β™‚οΈ

07.07.2025 15:57 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Idiotic comparison nicely done

07.07.2025 15:41 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Rerender perf has never ever been an issue for me, rerender issues are easily solved with tools like Zustand, so yeah I was curious whether Compiler was worth the effort. Sorry that makes you so mad lmfao

07.07.2025 15:41 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

No I work with talented engineers. It just doesn't come up for me πŸ€·β€β™‚οΈ

07.07.2025 15:21 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

I work on an old React app at scale with zero Zustand. I never deal with rerender perf issues. Maybe you just have skill issues

07.07.2025 15:10 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

No, because re-renter performance is never an issue for me

07.07.2025 15:02 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

It wasn’t an issue. I was observing re-renders to compare vanilla react to Zustand and was surprised. That’s all πŸ˜‚

07.07.2025 14:52 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

damnnnn you're really worked up πŸ˜‚

07.07.2025 14:10 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 1

Hahaha stay mad weirdo

07.07.2025 14:00 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

lol fuck off I didn’t call out anything I asked a question about re-renders. I didn’t know the answer because re-renders are something that never, ever comes up for me πŸ˜‚

07.07.2025 12:50 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Hi πŸ‘‹

Thanks a ton for confirming what @acemarke.dev surmised. It was a long time ago and yeah, now it all makes sense πŸš€

07.07.2025 06:37 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

My god thank you so much!!!!!

06.07.2025 16:32 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Interesting, so this would only matter if this component had state _other than_ the memoized context data?

Then that other state changing would not affect the memoized context, and so context providers would NOT re-render when that other state changed?

06.07.2025 16:18 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Bam - thank you! More engagement on Twitter, but this zero'd in on it. Thank you so much!!!!

06.07.2025 16:10 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

Does that advice presume that you'll have memoized components underneath the context provider, so that passing the memoized context value won't break those components' memoizations?

06.07.2025 15:26 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

I have a question about, of all things, React

I'm 99% sure I remember a highly respected React core member (Sophie) advising that you memoize context values to help avoid re-renders.

BUT in my own testing it seems this component's *parent* re-rendering always re-renders this, and all its children

06.07.2025 15:23 β€” πŸ‘ 28    πŸ” 1    πŸ’¬ 7    πŸ“Œ 0

I know the folks who built it are smarter than I'll ever be but I can't help but think the React compiler was kind of a waste of resources

- Superfluous re-renders are very, very rarely an actual perf problem

- Tools like Zustand let you tame re-renders while *improving* dx

05.07.2025 23:27 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 1    πŸ“Œ 1
Preview
Suhail on X: "PSA: there’s a guy named Soham Parekh (in India) who works at 3-4 startups at the same time. He’s been preying on YC companies and more. Beware. I fired this guy in his first week and told him to stop lying / scamming people. He hasn’t stopped a year later. No more excuses." / X PSA: there’s a guy named Soham Parekh (in India) who works at 3-4 startups at the same time. He’s been preying on YC companies and more. Beware. I fired this guy in his first week and told him to stop lying / scamming people. He hasn’t stopped a year later. No more excuses.

x.com/suhail/statu...

05.07.2025 20:41 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@adamrackis is following 19 prominent accounts