adrianhajdin / iphone

Recreate the Apple iPhone 15 Pro website, combining GSAP animations and Three.js 3D effects. From custom animations to animated 3D models, this tutorial covers it all.
https://iphone-doc.vercel.app/
1.03k stars 184 forks source link

Performance Improvement Suggestion: Optimizing Ref Callbacks and End-of-Video Handling in VideoCarousel.jsx #9

Open Bishal-Pahari opened 5 months ago

Bishal-Pahari commented 5 months ago

In the VideoCarousel.jsx file, there may be potential for performance optimization in the way we handle the end of the video in the carousel and define the ref callbacks. The current implementation may not be as efficient as it could be, possibly leading to unnecessary re-renders.