Skip to content

Commit 28e3fc5

Browse files
authored
chore: add devtools to with-tanstack-router example (#1848)
1 parent a696b99 commit 28e3fc5

File tree

4 files changed

+88
-8
lines changed

4 files changed

+88
-8
lines changed

examples/pnpm-lock.yaml

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

examples/with-tanstack-router/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"version": "vinxi version"
99
},
1010
"dependencies": {
11-
"@tanstack/solid-router": "^1.112.2",
11+
"@tanstack/solid-router": "^1.114.1",
12+
"@tanstack/solid-router-devtools": "^1.114.1",
1213
"@tanstack/router-plugin": "^1.112.0",
1314
"@solidjs/start": "^1.1.2",
1415
"solid-js": "^1.9.5",
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
import { TanStackRouterDevtools } from "@tanstack/solid-router-devtools";
3+
export default TanStackRouterDevtools;
4+

examples/with-tanstack-router/src/routes/__root.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import { Link, Outlet, createRootRoute } from "@tanstack/solid-router";
2+
3+
import { clientOnly } from "@solidjs/start";
24
import { Suspense } from "solid-js";
35

6+
7+
const Devtools = clientOnly(() => import("../components/Devtools"));
8+
49
export const Route = createRootRoute({
510
component: RootComponent
611
});
@@ -12,6 +17,7 @@ function RootComponent() {
1217
<Link to="/about">About</Link>
1318
<Suspense>
1419
<Outlet />
20+
<Devtools />
1521
</Suspense>
1622
</>
1723
);

0 commit comments

Comments
 (0)