Malindu Warapitiya
banner
malindu.dev
Malindu Warapitiya
@malindu.dev
Reposted by Malindu Warapitiya
Going back through @ricky.fm's Async React as I prep an internal talk, and this part is insanely good, felt like it deserved a reshare🔥
youtu.be/p9OcztRyDl0?...
November 17, 2025 at 7:12 PM
Reposted by Malindu Warapitiya
ECMAScript excitement 😉

Congrats to @manishearth.bsky.social on unflagging TC39 Stage 3 Temporal in V8 today. Heading for Chrome 144 🎉

By many metrics this new date-time API is the single biggest change to JS ever 🔥

V8 uses Boa's temporal_rs by @jason-williams.co.uk Kevin Ness & Manish 👍
November 4, 2025 at 7:49 PM
Reposted by Malindu Warapitiya
Note that this doesn't happen with @tanstack.com start server functions because unlike "directives", they are actually typed so you'll get a Promise on type level and linting can tell you if you forget to await it. So types are good I guess, who would've thought 🤷‍♂️
marma.dev MRK @marma.dev · Oct 26
How our "perfect" one-line isOwner() function in Next.js started always returning true.

Spoiler: It is because of server functions...

Wrote about the bug, the fix, and the "magic" that caused it:

marma.dev/articles/202...

#webdev #javascript #typescript #react #nextjs #serverfunctions
marma.dev
November 2, 2025 at 8:57 AM
Reposted by Malindu Warapitiya
📚 As promised, a quick writeup on how syncing state - even if it’s between server and client state - can be avoided if we’d just derive state instead:
Deriving Client State from Server State
How to use derived state in React to keep client state and server data aligned without manual sync or effects.
tkdodo.eu
September 1, 2025 at 1:17 PM
Reposted by Malindu Warapitiya
📚 Got some questions around the `select` option lately:

- How to make typed abstractions
- How to make sure it doesn't run too often

So per my own rules, I had to write a blogpost about it:
React Query Selectors, Supercharged
How to get the most out of select, sprinkled with some TypeScript tips.
tkdodo.eu
August 4, 2025 at 3:14 PM
Reposted by Malindu Warapitiya
Some huge @11ty.dev core package size wins today from a few small changes after analyzing the package using @antfu.me’s Node Modules Inspector

node-modules.dev

Retiring unnecessary Node.js version back-compat is a good thing!
Node Modules Inspector
Visualize your node_modules, inspect dependencies, and more.
node-modules.dev
March 4, 2025 at 9:08 PM
Reposted by Malindu Warapitiya
Just hit the “publish” button on a brand-new blog post! ⭐

This one shares the killer pattern I find myself using over and over with container queries: responding *within* media queries to adapt to the new container size.

Once you start using this trick, you’ll see opportunities for it all over. 😄
Container Queries Unleashed • Josh W. Comeau
Container queries expand the universe of designs that can be implemented, giving us whole new superpowers. Now that container queries are broadly available, I think it’s time we start exploring this p...
www.joshwcomeau.com
January 27, 2025 at 4:18 PM
Reposted by Malindu Warapitiya
10 powerful ways to use #CSS variables

a non-exhaustive list, but a good one nonetheless!

nerdy.dev/custom-prop-...
10 powerful ways to use CSS variables · January 26, 2023
Tokens, house props, adaptive props, pseudo-private props, partial props, mixin props, swappy props, style query props, meta lang props and typed props. Oh my!
nerdy.dev
December 3, 2024 at 11:49 PM
Reposted by Malindu Warapitiya
December 1, 2024 at 9:53 PM
Hello Bluesky ✌️
November 16, 2024 at 9:57 PM