Switch to the new scroll restoration API & update snapshots
This commit is contained in:
@@ -13,6 +13,7 @@ import { routeTree } from "./routeTree.gen";
|
||||
// Create a new router instance
|
||||
export const router = createRouter({
|
||||
routeTree,
|
||||
scrollRestoration: true,
|
||||
basepath: config.root,
|
||||
defaultPendingComponent: LoadingScreen,
|
||||
defaultPreload: "intent",
|
||||
|
||||
@@ -9,7 +9,6 @@ import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
||||
import {
|
||||
type ErrorRouteComponent,
|
||||
Outlet,
|
||||
ScrollRestoration,
|
||||
createRootRouteWithContext,
|
||||
} from "@tanstack/react-router";
|
||||
import { TanStackRouterDevtools } from "@tanstack/router-devtools";
|
||||
@@ -28,7 +27,6 @@ export const Route = createRootRouteWithContext<{
|
||||
}>()({
|
||||
component: () => (
|
||||
<>
|
||||
<ScrollRestoration />
|
||||
<Outlet />
|
||||
|
||||
{import.meta.env.DEV &&
|
||||
|
||||
@@ -48,6 +48,9 @@ exports[`Reset cross signing > renders the cancelled page 1`] = `
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
@@ -234,6 +237,9 @@ exports[`Reset cross signing > renders the deep link page 1`] = `
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
@@ -322,6 +328,9 @@ exports[`Reset cross signing > renders the errored page 1`] = `
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
@@ -508,6 +517,9 @@ exports[`Reset cross signing > renders the page 1`] = `
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
@@ -554,6 +566,9 @@ exports[`Reset cross signing > renders the success page 1`] = `
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
@@ -600,5 +615,8 @@ exports[`Reset cross signing > renders the success page 2`] = `
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
@@ -736,5 +736,8 @@ exports[`Account home page > renders the page 1`] = `
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user