Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/app-next-js/app/mpa/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Link from 'next/link'
import { testData } from '../../../testdata/src/ssr'

export const dynamic = 'force-dynamic'
Expand All @@ -13,7 +14,7 @@ export default async function MpaPage() {
<td>{entry.id}</td>
<td>{entry.name}</td>
<td>
<a href={`/mpa/${entry.id}`}>View →</a>
<Link href={`/mpa/${entry.id}`}>View →</Link>
</td>
</tr>
))}
Expand Down
3 changes: 2 additions & 1 deletion packages/app-react-router/app/routes/mpa.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Link } from 'react-router'
import { testData } from '../../../testdata/src/ssr'
import type { Route } from './+types/mpa'

Expand All @@ -15,7 +16,7 @@ export default function MpaPage({ loaderData }: Route.ComponentProps) {
<td>{entry.id}</td>
<td>{entry.name}</td>
<td>
<a href={`/mpa/${entry.id}`}>View →</a>
<Link to={`/mpa/${entry.id}`}>View →</Link>
</td>
</tr>
))}
Expand Down
4 changes: 2 additions & 2 deletions packages/app-solid-start/src/routes/mpa/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { For } from 'solid-js'
import { query, createAsync } from '@solidjs/router'
import { A, query, createAsync } from '@solidjs/router'
import { testData } from '../../../../testdata/src/ssr'

const getData = query(async () => {
Expand All @@ -23,7 +23,7 @@ export default function MpaPage() {
<td>{entry.id}</td>
<td>{entry.name}</td>
<td>
<a href={`/mpa/${entry.id}`}>View →</a>
<A href={`/mpa/${entry.id}`}>View →</A>
</td>
</tr>
)}
Expand Down
2 changes: 1 addition & 1 deletion packages/app-sveltekit/src/routes/mpa/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<td>{entry.id}</td>
<td>{entry.name}</td>
<td>
<a href="/mpa/{entry.id}" data-sveltekit-reload>View →</a>
<a href="/mpa/{entry.id}">View →</a>
</td>
</tr>
{/each}
Expand Down
6 changes: 4 additions & 2 deletions packages/app-tanstack-start-react/src/routes/mpa.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createFileRoute } from '@tanstack/react-router'
import { createFileRoute, Link } from '@tanstack/react-router'
import { testData } from '../../../testdata/src/ssr'

export const Route = createFileRoute('/mpa')({
Expand All @@ -17,7 +17,9 @@ function MpaPage() {
<td>{entry.id}</td>
<td>{entry.name}</td>
<td>
<a href={`/mpa/${entry.id}`}>View →</a>
<Link to="/mpa/$id" params={{ id: entry.id }}>
View →
</Link>
</td>
</tr>
))}
Expand Down
Loading