Skip to content

Commit

Permalink
fix react router scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
avo committed Oct 29, 2024
1 parent 91d4fba commit 44ca96f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/routes/Root.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { Outlet } from 'react-router-dom';
import { Outlet, ScrollRestoration } from 'react-router-dom';
import { PageWrapper } from '../layout/PageWrapper';

export function Root() {
return (
<PageWrapper>
<Outlet />
</PageWrapper>
<>
<ScrollRestoration />
<PageWrapper>
<Outlet />
</PageWrapper>
</>
);
}

0 comments on commit 44ca96f

Please sign in to comment.