Replies: 2 comments 8 replies
-
Anything is uncertain, but I feel like, a) if we keep |
Beta Was this translation helpful? Give feedback.
2 replies
-
I just tested nextjs + react 19 with the experimental compiler. We have our our code full of atoms and useMemo() which purpose are keeping () => atom patterns from making our frontend re-render indefinitely. The result: Infinite re-renders everywhere :S |
Beta Was this translation helpful? Give feedback.
6 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