Skip to content

Commit b4c21c1

Browse files
authored
docs: add router-devtools (#1264)
1 parent 5e7daea commit b4c21c1

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed

apps/docs/app/routes/__root.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
Scripts,
55
createRootRoute,
66
} from '@tanstack/react-router';
7+
import { TanStackRouterDevtools } from '@tanstack/react-router-devtools';
78

89
export const Route = createRootRoute({
910
head: () => ({
@@ -29,6 +30,7 @@ function RootDocument() {
2930
{/* Setting the body position to relative enables setting the backdrop on expanded menu */}
3031
<body className="relative">
3132
<Outlet />
33+
<TanStackRouterDevtools position="bottom-right" />
3234
<Scripts />
3335
</body>
3436
</html>

apps/docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"devDependencies": {
4444
"@obosbbl/grunnmuren-tailwind": "workspace:*",
4545
"@react-aria/optimize-locales-plugin": "1.1.4",
46+
"@tanstack/react-router-devtools": "1.114.27",
4647
"autoprefixer": "10.4.21",
4748
"postcss": "8.5.3",
4849
"react-docgen-typescript": "2.2.2",

pnpm-lock.yaml

Lines changed: 79 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)