magicuidesign / magicui

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
https://magicui.design
MIT License
12.01k stars 475 forks source link

Memory leak (orphaned raf loop) fix: Cancelling animation frame in particles.tsx on rerender #396

Closed Khongchai closed 2 weeks ago

Khongchai commented 4 weeks ago

Without cancelling animation frame, you'll end up with orphaned animation frame loops running in the background when the component rerenders.

image
vercel[bot] commented 4 weeks ago

@Khongchai is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.