Cody
banner
codey.bsky.social
Cody
@codey.bsky.social
Principal Engineer at Sanity.io
A lot of you need to read react.dev/learn/you-mi... and it shows
You Might Not Need an Effect – React
The library for web and native user interfaces
react.dev
November 12, 2025 at 6:18 PM
Reposted by Cody
✨ welcome to @sentry.io, React Compiler ✨
October 17, 2025 at 1:02 PM
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
October 17, 2025 at 8:52 AM
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! 😲
October 16, 2025 at 10:48 AM
Reposted by Cody
Here's the code for my Async React demo:

github.com/rickhanlonii...
GitHub - rickhanlonii/async-react: The final state of the React Conf 2025 Async React talk.
The final state of the React Conf 2025 Async React talk. - rickhanlonii/async-react
github.com
October 15, 2025 at 8:41 PM
Hyped for part 3 of @ricky.fm’s Async React
October 9, 2025 at 6:40 AM
Reposted by Cody
we've started building out an "awesome" list for @e18e.dev 🎉

this should provide a good resource for finding modern libraries and tools. contributions welcome!
GitHub - e18e/awesome-e18e: A curated list of awesome e18e-focused packages
A curated list of awesome e18e-focused packages. Contribute to e18e/awesome-e18e development by creating an account on GitHub.
github.com
October 5, 2025 at 9:57 AM
Last minute tweaks to the slides 🤏 got two looooong flights ahead 😮‍💨
October 5, 2025 at 12:03 PM
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
October 2, 2025 at 5:19 AM
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
September 30, 2025 at 8:02 PM
Reposted by Cody
@codey.bsky.social is giving a talk on React Compiler
September 29, 2025 at 2:23 PM
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 👇🏻
September 24, 2025 at 7:37 PM
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
September 18, 2025 at 11:46 AM
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
September 16, 2025 at 12:25 PM
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...
September 13, 2025 at 8:26 AM
Reposted by Cody
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
September 12, 2025 at 7:29 AM
It's very difficult to get stable repeatable benchmark results for scenarios that tie into React Concurrent mode. The best I've come up with is this one:
- Before concurrent-styled-components.sanity.dev?strategy=ins...
- After concurrent-styled-components.sanity.dev?strategy=use...
September 11, 2025 at 7:15 PM
Great read! Would love to see your opinion @simeongriggs.dev on using useTransition() to render spinners where suspenseful actions are triggered. Changing a search filter, clicking on a row that opens a detail view, etc
September 6, 2025 at 9:04 AM
Reposted by Cody
React folks: Id love your suggestions for an example app that stresses context update performance. I’m looking for something bigger than a micro benchmark, smaller than a full production app. Just complex to have a more realistic distribution of time in framework/product logic, ~1kloc
September 2, 2025 at 4:41 AM
So... I've forked `styled-components`... not once, but twice (!) github.com/sanity-io/cs... 😅 AMA 😂
GitHub - sanity-io/css-in-js: One does not simply remove styled-components from a codebase.
One does not simply remove styled-components from a codebase. - sanity-io/css-in-js
github.com
August 29, 2025 at 2:34 PM
Motion is such a showcase of craftwork, passion for detail, and hard work 💖 Well deserved @citizenofnowhe.re!
Super excited to welcome @sanity.io as the newest Motion sponsor!

Sanity have been longtime users of Motion and it's amazing they're helping support its future as a platinum sponsor.

Check them out: sanity.io
August 26, 2025 at 5:39 PM
Reposted by Cody
⚓️Oxlint with type-aware linting is here ⚓️

◆ 40 type-aware rules supported, including the famous `no-floating-promises` rule
◆ Built on top of `tsgolint` and `ts-go`
◆ Brings speed improvement & correctness

Read more in the latest announcement
voidzero.dev/posts/announ...
Announcing Oxlint Type-Aware Linting
Oxlint with type-aware linting is now available and supports 40 long-awaited rules including no-floating-promises. Oxlint uses tsgolint, which @auvred initially prototyped as typescript-eslint/tsgolin...
voidzero.dev
August 22, 2025 at 1:31 PM
Reposted by Cody
If you've never seen the Japanese Super Metroid commercial then you have to see this absolute work for art right here!
August 11, 2025 at 3:33 PM