diff --git a/client/src/App.tsx b/client/src/App.tsx index 5639ec3..076f13b 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -33,10 +33,11 @@ function AnimatedRoutes() { if (el) { el.classList.remove('page-enter-active'); el.classList.add('page-enter'); - requestAnimationFrame(() => { + const rafId = requestAnimationFrame(() => { el.classList.remove('page-enter'); el.classList.add('page-enter-active'); }); + return () => cancelAnimationFrame(rafId); } }, [location.pathname]); diff --git a/client/src/pages/ProfilePage.tsx b/client/src/pages/ProfilePage.tsx index 0fb9794..29ac0e1 100644 --- a/client/src/pages/ProfilePage.tsx +++ b/client/src/pages/ProfilePage.tsx @@ -268,7 +268,6 @@ export default function ProfilePage() {
-