11<% if (! fileRouter) { ignoreFile () } %> import { <% if (addOnEnabled .start ) { % >
22 HeadContent< % } else { % > Outlet< % } %><% if (addOnEnabled .start ) { % > , Scripts< % } %> , <% if (addOnEnabled[" tanstack-query" ]) { % > createRootRouteWithContext< % } else { % > createRootRoute< % } %> } from '@tanstack/react-router'
3- import { TanStackRouterDevtools } from '@tanstack/react-router-devtools'
3+ import { TanStackRouterDevtoolsPanel } from '@tanstack/react-router-devtools';
4+ import { TanstackDevtools } from '@tanstack/react-devtools'
45<% if (addOns .length ) { % >
56import Header from ' ../components/Header'
6- < % } %><% for (const integration of integrations .filter (i => i .type === ' layout' || i .type === ' provider' )) { % >
7- import <%= integration .jsName %> from " <%= relativePath(integration.path) %>" ;
7+ < % } %><% for (const integration of integrations .filter (i => i .type === ' layout' || i .type === ' provider' || i . type === ' devtools ' )) { % >
8+ import <%= integration .jsName %> from ' <%= relativePath(integration.path, true ) %>'
89< % } %>
910<% if (addOnEnabled .start ) { % >
1011import appCss from ' ../styles.css?url'
@@ -53,7 +54,18 @@ export const Route = <% if (addOnEnabled["tanstack-query"]) { %>createRootRouteW
5354 < % for (const integration of integrations .filter (i => i .type === ' provider' )) { % > << %= integration .jsName % >>
5455 < % } % >< % if (addOns .length ) { % >< Header / >
5556 < % } % >< Outlet / >
56- < TanStackRouterDevtools / >
57+ < TanstackDevtools
58+ config= {{
59+ position: ' bottom-left' ,
60+ }}
61+ plugins= {[
62+ {
63+ name: ' Tanstack Router' ,
64+ render: < TanStackRouterDevtoolsPanel / > ,
65+ },
66+ < % for (const integration of integrations .filter (i => i .type === ' devtools' )) { % >< %= integration .jsName % > ,< % } % >
67+ ]}
68+ / >
5769 < % for (const integration of integrations .filter (i => i .type === ' layout' )) { % > << %= integration .jsName % > / >
5870 < % } % >< % for (const integration of integrations .filter (i => i .type === ' provider' ).reverse ()) { % >< / < %= integration .jsName % >>
5971 < % } % >
@@ -72,7 +84,18 @@ function RootDocument({ children }: { children: React.ReactNode }) {
7284 < % for (const integration of integrations .filter (i => i .type === ' provider' )) { % > << %= integration .jsName % >>
7385 < % } % >< % if (addOns .length ) { % >< Header / >
7486 < % } % > {children}
75- < TanStackRouterDevtools / >
87+ < TanstackDevtools
88+ config= {{
89+ position: ' bottom-left' ,
90+ }}
91+ plugins= {[
92+ {
93+ name: ' Tanstack Router' ,
94+ render: < TanStackRouterDevtoolsPanel / > ,
95+ },
96+ < % for (const integration of integrations .filter (i => i .type === ' devtools' )) { % >< %= integration .jsName % > ,< % } % >
97+ ]}
98+ / >
7699 < % for (const integration of integrations .filter (i => i .type === ' layout' )) { % > << %= integration .jsName % > / >
77100 < % } % >< % for (const integration of integrations .filter (i => i .type === ' provider' ).reverse ()) { % >< / < %= integration .jsName % >>
78101 < % } % >< Scripts / >
0 commit comments