({ children }: { children: React.ReactNode })
| 35 | }) |
| 36 | |
| 37 | function RootDocument({ children }: { children: React.ReactNode }) { |
| 38 | console.log('Rendering Root Document') |
| 39 | const plugins = [ |
| 40 | { |
| 41 | name: 'Tanstack Router', |
| 42 | render: <TanStackRouterDevtoolsPanel />, |
| 43 | }, |
| 44 | { |
| 45 | id: 'route-navigation', |
| 46 | name: 'Route Navigation', |
| 47 | render: <RouteNavigationPanel />, |
| 48 | }, |
| 49 | ] |
| 50 | |
| 51 | return ( |
| 52 | <html lang="en"> |
| 53 | <head> |
| 54 | <HeadContent /> |
| 55 | </head> |
| 56 | <body> |
| 57 | <Header /> |
| 58 | {children} |
| 59 | <TanStackDevtools |
| 60 | config={{ |
| 61 | position: 'bottom-right', |
| 62 | }} |
| 63 | plugins={plugins} |
| 64 | /> |
| 65 | <Scripts /> |
| 66 | </body> |
| 67 | </html> |
| 68 | ) |
| 69 | } |
nothing calls this directly
no outgoing calls
no test coverage detected