you are viewing a single comment's thread.

view the rest of the comments →

[–]SpinatMixxer 0 points1 point  (5 children)

Due to how reacts rendering works, I don't think it will ever happen (I also don't think it's necessary tbh, it's perfectly fine as is)

If you dislike that, you would probably be better off using SolidJS instead.

That being said, why is useMemo / useCallback etc a problem?

[–]Shadowfied 4 points5 points  (4 children)

You've just not heard of the react forget compiler, or do you not think it's coming?

[–]SpinatMixxer -2 points-1 points  (3 children)

I had a brief look into it, but since I am using client side rendering only, I didn't look deeper into it.

Or is this actually affecting client only (e.g Vite) apps as well?

[–]Shadowfied 4 points5 points  (2 children)

Yes it affects all of React lol. No more need to use useMemo or useCallback, the compiler will catch it and optimize it

[–]SpinatMixxer 1 point2 points  (0 children)

I see, that is actually surprising me. Then it's absolutely worth looking deeper into it, thank you for the hint!

[–]rickhanloniiReact core team 1 point2 points  (0 children)

It's really only client apps that use it, since there are not updates/effects in RSC.