File tree Expand file tree Collapse file tree 4 files changed +272
-60
lines changed Expand file tree Collapse file tree 4 files changed +272
-60
lines changed Original file line number Diff line number Diff line change 1+ import { TanStackDevtools } from '@tanstack/react-devtools' ;
12import { QueryClient } from '@tanstack/react-query' ;
2- import { ReactQueryDevtools } from '@tanstack/react-query-devtools' ;
3+ import { ReactQueryDevtoolsPanel } from '@tanstack/react-query-devtools' ;
34import {
45 createRootRouteWithContext ,
56 HeadContent ,
67 Outlet ,
78 Scripts ,
89} from '@tanstack/react-router' ;
10+ import { TanStackRouterDevtoolsPanel } from '@tanstack/react-router-devtools' ;
911import { createServerFn } from '@tanstack/react-start' ;
1012import { type ReactNode } from 'react' ;
1113import { useTranslation } from 'react-i18next' ;
@@ -110,7 +112,15 @@ function RootComponent() {
110112 < RootDocument >
111113 < Providers >
112114 < Outlet />
113- < ReactQueryDevtools initialIsOpen = { false } />
115+ < TanStackDevtools
116+ plugins = { [
117+ { name : 'Tanstack Query' , render : < ReactQueryDevtoolsPanel /> } ,
118+ {
119+ name : 'Tanstack Router' ,
120+ render : < TanStackRouterDevtoolsPanel /> ,
121+ } ,
122+ ] }
123+ />
114124 </ Providers >
115125 </ RootDocument >
116126 ) ;
Original file line number Diff line number Diff line change 5757 "@t3-oss/env-core" : " 0.13.4" ,
5858 "@tanstack/react-query" : " 5.81.5" ,
5959 "@tanstack/react-query-devtools" : " 5.81.5" ,
60+ "@tanstack/devtools-vite" : " 0.3.3" ,
61+ "@tanstack/react-devtools" : " 0.7.0" ,
6062 "@tanstack/react-router" : " 1.131.50" ,
63+ "@tanstack/react-router-devtools" : " 1.131.50" ,
6164 "@tanstack/react-start" : " 1.131.50" ,
6265 "@tanstack/zod-adapter" : " 1.131.50" ,
6366 "@uidotdev/usehooks" : " 2.4.1" ,
You can’t perform that action at this time.
0 commit comments