diff --git a/docs/devtools.md b/docs/devtools.md index 991cea5238..94b9ad7260 100644 --- a/docs/devtools.md +++ b/docs/devtools.md @@ -38,13 +38,11 @@ const TanStackRouterDevtools = ? () => null // Render nothing in production : React.lazy(() => // Lazy load in development - import('@tanstack/react-router-devtools').then( - (res) => ({ - default: res.TanStackRouterDevtools - // For Embedded Mode - // default: res.TanStackRouterDevtoolsPanel + import("@tanstack/react-router-devtools").then( + ({ TanStackRouterDevtools }) => ({ + default: TanStackRouterDevtools, }) - ), + ) ) ```