News for hackers. Stuff that matters.
Re:React: You Might Not Need an Effect by robby_w_g on Thursday March 23, 2023 @01:57PM (#35278711)
As far as I can tell, useEffectEvent is just the useEvent hook but renamed to reduce scope. useEvent was originally going to provide performance optimizations when creating event handlers in a function component and it was going to solve the issue of event handlers causing effects to re-fire[1].

Now it's just going to focus on the effect issue.

[1] https://github.com/reactjs/rfcs/blob/useevent/text/0000-usee...

There are no comments on this comment yet.