Skip to content
Source
Sign inSign up
fuko/trytanstackdb.com

Add the Tanstack Devtools plugin #33

Mergedfukomerged 5 commits intomain fromrefs/pull/33/headmerged by fuko View on GitHub

Showing 6 changed files with 25 additions and 2 deletions (loading 2).

x
0 of 6 viewed, 6 left
1 addition and 1 deletionsrc/components/HomeIntro.tsxModified
View file
@@ -1,6 +1,6 @@
import { useNavigate } from "@tanstack/react-router";
import { ArrowRightIcon, DatabaseZap } from "lucide-react";
-import { AnimatePresence, motion, stagger, Variants } from "motion/react";
+import { AnimatePresence, motion, stagger, type Variants } from "motion/react";
import { type ReactNode, useCallback, useState } from "react";
import { cn } from "@/lib/utils";
import { Button } from "./ui/button";
20 additions and 0 deletionssrc/routes/__root.tsxModified
View file
@@ -1,10 +1,13 @@
+import { TanStackDevtools } from "@tanstack/react-devtools";
import type { QueryClient } from "@tanstack/react-query";
+import { ReactQueryDevtoolsPanel } from "@tanstack/react-query-devtools";
import {
ClientOnly,
createRootRouteWithContext,
HeadContent,
Scripts,
} from "@tanstack/react-router";
+import { TanStackRouterDevtoolsPanel } from "@tanstack/react-router-devtools";
import { ThemeProvider } from "@/components/theme-provider";
import appCss from "../styles.css?url";
import "prismjs/themes/prism-tomorrow.css"; // or any other Prism theme