Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

index.tsx

78 lines2.2 KB

1import { Link, createFileRoute } from '@tanstack/solid-router'
2​
3export const Route = createFileRoute('/')({
4 component: Home,
5})
6​
7function Home() {
8 return (
9 <div class="p-8">
10 <h1 class="font-bold text-lg">Server functions E2E tests</h1>
11 <ul class="list-disc p-4">
12 <li>
13 <Link to="/consistent">
14 Consistent server function returns both on client and server for GET
15 and POST calls
16 </Link>
17 </li>
18 <li>
19 <Link to="/multipart">
20 submitting multipart/form-data as server function input
21 </Link>
22 </li>
23 <li>
24 <Link to="/return-null">
25 Server function can return null for GET and POST calls
26 </Link>
27 </li>
28 <li>
29 <Link to="/serialize-form-data">
30 Server function can correctly send and receive FormData
31 </Link>
32 </li>
33 <li>
34 <Link to="/headers">
35 server function can correctly send and receive headers
36 </Link>
37 </li>
38 <li>
39 <Link to="/submit-post-formdata">
40 Direct POST submitting FormData to a Server function returns the
41 correct message
42 </Link>
43 </li>
44 <li>
45 <Link to="/status">
46 invoking a server function with custom response status code
47 </Link>
48 </li>
49 <li>
50 <Link to="/isomorphic-fns">
51 isomorphic functions can have different implementations on client
52 and server
53 </Link>
54 </li>
55 <li>
56 <Link to="/env-only">
57 env-only functions can only be called on the server or client
58 respectively
59 </Link>
60 </li>
61 <li>
62 <Link to="/cookies">server function sets cookies</Link>
63 </li>
64 <li>
65 <Link to="/dead-code-preserve">
66 dead code elimation only affects code after transformation
67 </Link>
68 </li>
69 <li>
70 <Link to="/abort-signal">aborting a server function call</Link>
71 </li>
72 <li>
73 <Link to="/raw-response">server function returns raw response</Link>
74 </li>
75 </ul>
76 </div>
77 )