Replies: 1 comment
-
Anything is uncertain, but I feel like, a) if we keep |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since useMemo will "disappear" with the React Compiler, I wonder how would these jotai pattern evolve:
If the compiler does this kind of code automatically include useMemo, wouldnt that cause any problems to jotai's normal usage or maybe to patterns similar to this one?
📝 For context, this pattern enables to pick a particular element of a big map dynamically, when the parameter (in this example
unitId
) can't be stored in another atom. It's an alternative to atomFamilies.📝 React 19.0.0 will not include the compiler, it will arrive later.
Beta Was this translation helpful? Give feedback.
All reactions