🐛 fix(router): ensure window scrolls to top on route change
This commit is contained in:
@@ -13,6 +13,10 @@ const RouteTracker = () => {
|
||||
analytics.page()
|
||||
}, [analytics, location])
|
||||
|
||||
useEffect(() => {
|
||||
window.scrollTo(0, 0)
|
||||
}, [location])
|
||||
|
||||
return <Outlet />
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user