cc: @acemarke.dev @sebmarkbage.calyptus.eu
02.05.2025 07:04 β π 1 π 0 π¬ 0 π 0
different value somehow that'll how the classes are generated. Even if I have somthing like
const useCache = React.cache(() => ({
}));
This essentially ties the code to this particular cache which the user can't really override.
Note that Emotion is just an example I used (3/3)
02.05.2025 06:43 β π 0 π 0 π¬ 0 π 0
your app in CacheProvider through which, you can customize the generated class name's prefix. Emotion's code calls useCache() and gets its value (default or user provided) through a context. But in case of RSCs, I can't have similar useCache() that the user can provide a (2/3)
02.05.2025 06:43 β π 0 π 0 π¬ 1 π 0
Hey @react.dev and @nextjs.org teams, Is there a recommended approach to contexts for RSC ? With it, a library could write a singleton-like code which the user of the library could customize by providing a different value through a context. For example, in Emotion, you can wrap (1/3)
02.05.2025 06:43 β π 0 π 0 π¬ 2 π 0
π³π΄ Web Developer | React & Next.js | Microsoft MVP | International Conference Speaker | Consultant at crayonconsulting.no
Unified tooling for JavaScript
Husband / Father of two / Founder voidzero.dev / Creator @vuejs.org & @vite.dev
Building http://oxc.rs and https://rolldown.rs at https://voidzero.dev. TC39 invited expert.
Learning on https://oxc.dev, working at https://voidzero.dev
https://github.com/Dunqing
Team member of @vite.dev and @vitest.dev.
https://github.com/hi-ogawa
@vitest.dev @vite.dev contributor
@vite.dev core team member.
π» DevRel @voidzero.dev
π¬ Video Content https://lichter.link/yt
π @nuxt.com team
ποΈ Podcast Host @dejavue.fm
@vite.dev core team β’ open source at @stackblitz.com β’ https://patak.dev β’ https://github.com/patak-dev β’ @vitest.dev β’ @e18e.dev β’ https://elk.zone
π²πΎ Web dev. Building tools for fun. @vite.dev core team member. Something something opinions.
Vite team member and maintainer of React plugins
@vitest.dev Core Team β’ Open Source at @stackblitz.com β’ github.com/AriPerkkio
A fullstack and android developer, Vite's fanatical follower.
Core team β @unocss.dev β’ @vitest.dev β’ @vuejs.org β’ elk.zone β’ @tresjs.org β’ vuetifyjs.com
Ecosystem Team β @nuxt.com
Mantainer β nuxt.vuetifyjs.com β’ https://vite-pwa-org.netlify.app
dad | software engineer @github.com | core team member of oxc.rs | βοΈ
camchenry.com
The build tool for the web. It's pronounced /vit/ like skeet!
https://vite.dev
Join for the First Ever in-person ViteConf on 9-10 October in Amsterdam! https://viteconf.org
Made possible by @bolt.new π