diff --git a/docs/router/framework/solid/guide/ssr.md b/docs/router/framework/solid/guide/ssr.md index 46444ae87c3..d52918a3782 100644 --- a/docs/router/framework/solid/guide/ssr.md +++ b/docs/router/framework/solid/guide/ssr.md @@ -13,7 +13,7 @@ import { createRouter } from './router' const router = createRouter() -hydrate(() => , document.body) +hydrate(() => , document) ``` [//]: # 'ClientEntryFileExample' diff --git a/docs/start/framework/solid/build-from-scratch.md b/docs/start/framework/solid/build-from-scratch.md index f9b19384f1d..f0b932028d0 100644 --- a/docs/start/framework/solid/build-from-scratch.md +++ b/docs/start/framework/solid/build-from-scratch.md @@ -196,9 +196,9 @@ function RootDocument({ children }: Readonly<{ children: Solid.JSX.Element }>) { + - {children} diff --git a/docs/start/framework/solid/guide/routing.md b/docs/start/framework/solid/guide/routing.md index b33b6180adf..0eb8a9d1a0b 100644 --- a/docs/start/framework/solid/guide/routing.md +++ b/docs/start/framework/solid/guide/routing.md @@ -105,11 +105,15 @@ function RootComponent() { function RootDocument({ children }: Readonly<{ children: Solid.JSX.Element }>) { return ( - <> - - {children} - - + + + + + + {children} + + + ) } ``` diff --git a/docs/start/framework/solid/guide/selective-ssr.md b/docs/start/framework/solid/guide/selective-ssr.md index a7b454dbae2..f1e3c226a5e 100644 --- a/docs/start/framework/solid/guide/selective-ssr.md +++ b/docs/start/framework/solid/guide/selective-ssr.md @@ -205,9 +205,15 @@ export const Route = createRootRoute({ function RootShell(props) { return ( - - {props.children} - + + + + + + {props.children} + + + ) } diff --git a/e2e/solid-start/basic-auth/src/routes/__root.tsx b/e2e/solid-start/basic-auth/src/routes/__root.tsx index 3a3392e9223..7063fe7fbb4 100644 --- a/e2e/solid-start/basic-auth/src/routes/__root.tsx +++ b/e2e/solid-start/basic-auth/src/routes/__root.tsx @@ -10,7 +10,6 @@ import { TanStackRouterDevtools } from '@tanstack/solid-router-devtools' import { createServerFn } from '@tanstack/solid-start' import type * as Solid from 'solid-js' -import { HydrationScript } from 'solid-js/web' import { DefaultCatchBoundary } from '~/components/DefaultCatchBoundary.js' import { NotFound } from '~/components/NotFound.js' import appCss from '~/styles/app.css?url' @@ -101,10 +100,9 @@ function RootDocument({ children }: { children: Solid.JSX.Element }) { return ( - + -
- + -
- + -
({ @@ -29,10 +28,9 @@ function RootComponent() { return ( - + - diff --git a/e2e/solid-start/basic/src/routes/__root.tsx b/e2e/solid-start/basic/src/routes/__root.tsx index 3b1ec274f5d..86573fbd0d9 100644 --- a/e2e/solid-start/basic/src/routes/__root.tsx +++ b/e2e/solid-start/basic/src/routes/__root.tsx @@ -8,7 +8,6 @@ import { } from '@tanstack/solid-router' import { TanStackRouterDevtoolsInProd } from '@tanstack/solid-router-devtools' -import { HydrationScript } from 'solid-js/web' import { NotFound } from '~/components/NotFound' import appCss from '~/styles/app.css?url' import { seo } from '~/utils/seo' @@ -69,10 +68,9 @@ function RootComponent() { return ( - + -
- + -
- + -
- + -