diff --git a/docs/router/config.json b/docs/router/config.json index 94eff6070d..9f6e202f84 100644 --- a/docs/router/config.json +++ b/docs/router/config.json @@ -629,6 +629,10 @@ { "label": "Kitchen Sink + Solid Query (code-based)", "to": "framework/solid/examples/kitchen-sink-solid-query" + }, + { + "label": "View Transitions", + "to": "framework/solid/examples/view-transitions" } ] } diff --git a/examples/solid/view-transitions/.gitignore b/examples/solid/view-transitions/.gitignore new file mode 100644 index 0000000000..a6ea47e508 --- /dev/null +++ b/examples/solid/view-transitions/.gitignore @@ -0,0 +1,10 @@ +node_modules +.DS_Store +dist +dist-ssr +*.local + +/test-results/ +/playwright-report/ +/blob-report/ +/playwright/.cache/ diff --git a/examples/solid/view-transitions/.vscode/settings.json b/examples/solid/view-transitions/.vscode/settings.json new file mode 100644 index 0000000000..00b5278e58 --- /dev/null +++ b/examples/solid/view-transitions/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "files.watcherExclude": { + "**/routeTree.gen.ts": true + }, + "search.exclude": { + "**/routeTree.gen.ts": true + }, + "files.readonlyInclude": { + "**/routeTree.gen.ts": true + } +} diff --git a/examples/solid/view-transitions/README.md b/examples/solid/view-transitions/README.md new file mode 100644 index 0000000000..115199d292 --- /dev/null +++ b/examples/solid/view-transitions/README.md @@ -0,0 +1,6 @@ +# Example + +To run this example: + +- `npm install` or `yarn` +- `npm start` or `yarn start` diff --git a/examples/solid/view-transitions/index.html b/examples/solid/view-transitions/index.html new file mode 100644 index 0000000000..9b6335c0ac --- /dev/null +++ b/examples/solid/view-transitions/index.html @@ -0,0 +1,12 @@ + + +
+ + +This is the notFoundComponent configured on root route
+ Start Over +Post not found
+ }, + component: PostComponent, +}) + +function PostComponent() { + const post = Route.useLoaderData() + + return ( +