Cody
@codey.bsky.social
370 followers 190 following 120 posts
Principal Engineer at Sanity.io
Posts Media Videos Starter Packs
Gotcha. What I’ve skimmed so far looks on target. I’ll deep dive and share feedback next week 🙌
Reposted by Cody
✨ welcome to @sentry.io, React Compiler ✨
For sure, hoping I'll have time next week to dive in. Do you have an idea of when there's a POC we can test drive? 🙌
I’m extremely excited for how well this new api is shaping up to be. SanityLive on this setup will be S M O O O O T H 😤 🤌🤌🤌🤌🤌🤌
I have a new RFC up for route caching in Astro. It's our answer to ISR etc, but it has some important differences that I think would make it really powerful.

If you saw my talk at ViteConf you will have seen a preview, but this has a lot more detail on implementation and API. I'd love feedback!
Route Caching by ascorbic · Pull Request #1245 · withastro/roadmap
Summary A platform-agnostic route caching API for Astro SSR pages that enables declarative cache control using web standards. Examples Basic route caching --- // src/pages/products/[id].astro impor...
github.com
We are so back 🤌
All of the colors are calculated based on a single CSS variable using relative oklch, so you can change the theme with just one line.

--tint: green;

Modern CSS is amazing! 😲
Hyped for part 3 of @ricky.fm’s Async React
Glad you loved it! 💖 happy birthday 🥳
Reposted by Cody
Last minute tweaks to the slides 🤏 got two looooong flights ahead 😮‍💨
Reposted by Cody
We’ve been using the activity API at sanity since it was released as experimental to support multiple Iframes being mounted & unmounted whilst preserving their state & I’m really pleased at how fantastic it’s been.
React 19.2 is now available!

This release includes Activity, useEffectEvent, React Performance Tracks, partial pre-rendering, and more:

react.dev/blog/2025/10...
React 19.2 – React
The library for web and native user interfaces
react.dev
Super stoked to come talk about what we’ve learned from using it in production ✨
@codey.bsky.social is giving a talk on React Compiler
Reposted by Cody
@codey.bsky.social is giving a talk on React Compiler
Reposted by Cody
We're hosting the official @nextjs.org Conf opening party 🎉

Can't make it to our *[NYC] event?
Don't worry—we'll be in SF too!

Oct 21, 7pm-midnight at Southern Pacific Brewing in the Mission.

Great food, drinks, games + the Next.js (and Sanity!) community.

Register below 👇🏻
Ok you win, when can we have a client/SSR cache API? 🥺
ricky.fm Ricky @ricky.fm · Sep 15
Most of the people I see excited about the store API should actually be asking for a client/ssr cache API
Reposted by Cody
trusted publishing is fantastic for ensuring that the state of a @github.com repo maps to a public package

... but maintainers are still vulnerable to phishing, allowing bypassing it

so: this action fails ci when upgrading to a 'non-provenanced' package
in light of the current supply chain attacks, I've just published a @github.com action to detect packages that _lose_ their provenance.

📦 supports pnpm-lock.yaml, package-lock.json, yarn.lock (v1)
🎨 inline GitHub annotations
✅ JSON output + configurable
💪 published in TS with zero deps
GitHub - danielroe/provenance-action: GitHub Action that detects dependency provenance downgrades from lockfile changes (npm/pnpm/yarn).
GitHub Action that detects dependency provenance downgrades from lockfile changes (npm/pnpm/yarn). - danielroe/provenance-action
github.com
I’m not aware of any limits to i18n nor css-in-js with the compiler?
Could you show me some examples?
On performance, long term this is likely improving github.com/oxc-project/... and short term next.js and rolldown are already implementing strategies to only run babel if the compiler is needed
React Compiler oxc plugin · Issue #10048 · oxc-project/oxc
I wanted to open an issue capturing some of our past discussion on adding support for React Compiler as an oxc plugin. For context, the React team reached out to both the swc and oxc projects a few...
github.com
I would love to learn more about this. Is there a sandbox or gist I could look at that demonstrates this? 🙌
Reposted by Cody
Can't believe what I'm reading. Accidentally DDoS yourself because you fetch in useEffect in 2025 is so avoidable 😂

blog.cloudflare.com/deep-dive-in...
Reposted by Cody
dan @danabra.mov · Sep 12
cool post!
sanity.io Sanity @sanity.io · Sep 11
styled-components maintenance mode doesn't have to mean panic mode.

Our engineer @codey.bsky.social made performant community forks. Linear's already seeing 40% faster renders with zero code changes.

Not a permanent fix, but it buys you time to migrate properly.

www.sanity.io/blog/cut-sty...
styled-components maintenance mode: A 40% faster fork | Sanity
After styled-components entered maintenance mode, we forked it with React 18's useInsertionEffect. Result: 40% faster renders for Linear. Open source solution.
www.sanity.io