simicoder.bsky.social
@simicoder.bsky.social
Reposted
React v19 is now stable!

react.dev/blog/2024/12...
React v19 – React
The library for web and native user interfaces
react.dev
December 5, 2024 at 7:05 PM
👀
Catch the gotcha?

This cache entry is specific to only a specific user because it uses the current user to compute its output. It means the current user must be part of the cache key otherwise this cache entry could leak between users.

"use cache" handles this automatically for closures.
November 2, 2024 at 9:52 PM