matt pfp
matt

@matthewmorek

this is clever but you probably don’t need 50 lines of suspense hijacking to fix exit animations useRef + onAnimationEnd does the same thing in 10 lines, works with shadcn/radix/baseui out of the box, and won’t break when react changes suspense internals https://x.com/mbarvian/status/2019432575689965821 wrote up the simple approach with a direct comparison and examples, as well as some caveats: https://matthewmorek.com/journal/clean-exit-animations-in-react
1 reply
0 recast
0 reaction