Post

Performance Tracks are a new set of custom tracks in performance profiles that show more info about your React app. They include a Scheduler track that shows the priority of what React is working on, and a Components track to show which component is being worked on. react.dev/reference/de...

I found some of the limitations put on this a little unexpected, especially the requirement to not pass the callback in props into other components. Well the last time I needed something like useEffectEvent, these limitations would've been no issue, but I wonder if that will generally be the case.

conceptually an Effect Event is like a block of code inside an Effect, kind of like event { … } the API is a bit of like writing the compiled output for that

Not quite yet, it needs to go to canary first for final testing and preparing libraries for release.

> You should use useEffectEvent for functions that are conceptually “events” that happen to be fired from an Effect What about using it from a ref callback? E.g. for intersection observers