Skip to content

Commit

Permalink
Remove TanStack Router devtools
Browse files Browse the repository at this point in the history
  • Loading branch information
evadecker committed Nov 18, 2024
1 parent e460ddc commit ccf3fac
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
} from "@tanstack/react-router";
import type { ConvexAuthState } from "convex/react";
import { useTheme } from "next-themes";
import React, { Suspense } from "react";
import { RouterProvider } from "react-aria-components";
import { Toaster } from "sonner";

Expand All @@ -40,16 +39,6 @@ function RootRoute() {
const router = useRouter();
const { theme } = useTheme();

const TanStackRouterDevtools =
process.env.NODE_ENV === "production"
? () => null // Render nothing in production
: React.lazy(() =>
// Lazy load in development
import("@tanstack/router-devtools").then((res) => ({
default: res.TanStackRouterDevtools,
})),
);

return (
// TODO: Improve this API
// https://github.com/adobe/react-spectrum/issues/6587
Expand All @@ -64,9 +53,6 @@ function RootRoute() {
}
>
<Outlet />
<Suspense>
<TanStackRouterDevtools />
</Suspense>
<Toaster
theme={theme as "light" | "dark" | "system"}
offset={16}
Expand Down

0 comments on commit ccf3fac

Please sign in to comment.