File tree Expand file tree Collapse file tree 4 files changed +22
-2
lines changed Expand file tree Collapse file tree 4 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { routeTree } from "./routeTree.gen";
13
13
// Create a new router instance
14
14
export const router = createRouter ( {
15
15
routeTree,
16
+ scrollRestoration : true ,
16
17
basepath : config . root ,
17
18
defaultPendingComponent : LoadingScreen ,
18
19
defaultPreload : "intent" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
9
9
import {
10
10
type ErrorRouteComponent ,
11
11
Outlet ,
12
- ScrollRestoration ,
13
12
createRootRouteWithContext ,
14
13
} from "@tanstack/react-router" ;
15
14
import { TanStackRouterDevtools } from "@tanstack/router-devtools" ;
@@ -28,7 +27,6 @@ export const Route = createRootRouteWithContext<{
28
27
} > ( ) ( {
29
28
component : ( ) => (
30
29
< >
31
- < ScrollRestoration />
32
30
< Outlet />
33
31
34
32
{ import . meta. env . DEV &&
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ exports[`Reset cross signing > renders the cancelled page 1`] = `
48
48
</p >
49
49
</div >
50
50
</div >
51
+ <script >
52
+
53
+ </script >
51
54
</DocumentFragment >
52
55
` ;
53
56
@@ -234,6 +237,9 @@ exports[`Reset cross signing > renders the deep link page 1`] = `
234
237
</p >
235
238
</footer >
236
239
</div >
240
+ <script >
241
+
242
+ </script >
237
243
</DocumentFragment >
238
244
` ;
239
245
@@ -322,6 +328,9 @@ exports[`Reset cross signing > renders the errored page 1`] = `
322
328
</p >
323
329
</footer >
324
330
</div >
331
+ <script >
332
+
333
+ </script >
325
334
</DocumentFragment >
326
335
` ;
327
336
@@ -508,6 +517,9 @@ exports[`Reset cross signing > renders the page 1`] = `
508
517
</p >
509
518
</footer >
510
519
</div >
520
+ <script >
521
+
522
+ </script >
511
523
</DocumentFragment >
512
524
` ;
513
525
@@ -554,6 +566,9 @@ exports[`Reset cross signing > renders the success page 1`] = `
554
566
</p >
555
567
</div >
556
568
</div >
569
+ <script >
570
+
571
+ </script >
557
572
</DocumentFragment >
558
573
` ;
559
574
@@ -600,5 +615,8 @@ exports[`Reset cross signing > renders the success page 2`] = `
600
615
</p >
601
616
</div >
602
617
</div >
618
+ <script >
619
+
620
+ </script >
603
621
</DocumentFragment >
604
622
` ;
Original file line number Diff line number Diff line change @@ -736,5 +736,8 @@ exports[`Account home page > renders the page 1`] = `
736
736
</p >
737
737
</footer >
738
738
</div >
739
+ <script >
740
+
741
+ </script >
739
742
</DocumentFragment >
740
743
` ;
You can’t perform that action at this time.
0 commit comments