Brijesh Bittu's Avatar

Brijesh Bittu

@brijesh.cc.bsky.social

Software Engineer | Frontend

11 Followers  |  49 Following  |  4 Posts  |  Joined: 03.11.2024  |  1.4966

Latest posts by brijesh.cc on Bluesky

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

@brijesh.cc is following 20 prominent accounts