Skip to content

Commit

Permalink
Enable scrollRestoration
Browse files Browse the repository at this point in the history
  • Loading branch information
amanmahajan7 committed Jan 30, 2025
1 parent 7d2b1d9 commit 15ab956
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
"@faker-js/faker": "^9.4.0",
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
"@linaria/core": "^6.0.0",
"@microsoft/api-extractor": "^7.49.1",
"@tanstack/react-router": "^1.98.0",
"@tanstack/router-plugin": "^1.98.0",
"@microsoft/api-extractor": "^7.49.2",
"@tanstack/react-router": "^1.98.3",
"@tanstack/router-plugin": "^1.98.3",
"@testing-library/dom": "^10.1.0",
"@testing-library/react": "^16.2.0",
"@testing-library/user-event": "^14.5.2",
Expand Down
3 changes: 2 additions & 1 deletion website/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const router = createRouter({
defaultErrorComponent: ErrorComponent,
defaultNotFoundComponent: NotFound,
defaultPendingMinMs: 0,
defaultPreload: 'intent'
defaultPreload: 'intent',
scrollRestoration: true
});

// Register the router instance for type safety
Expand Down

0 comments on commit 15ab956

Please sign in to comment.