🐛 fix(router): ensure window scrolls to top on route change

This commit is contained in:
2025-06-16 13:32:26 +00:00
parent 436a7c8e74
commit 270a6a4476
@@ -13,6 +13,10 @@ const RouteTracker = () => {
analytics.page()
}, [analytics, location])
useEffect(() => {
window.scrollTo(0, 0)
}, [location])
return <Outlet />
}