File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
react-start/server-functions/src/routes/redirect-test
solid-start/server-functions/src/routes/redirect-test Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,11 @@ import { createFileRoute, redirect } from '@tanstack/react-router'
33import { createServerFn , useServerFn } from '@tanstack/react-start'
44import { Suspense } from 'react'
55
6- const $redirectServerFn = createServerFn ( { method : 'GET' } ) . handler ( async ( ) => {
7- throw redirect ( { to : '/redirect-test/target' } )
8- } )
6+ const $redirectServerFn = createServerFn ( { method : 'GET' } ) . handler (
7+ async ( ) => {
8+ throw redirect ( { to : '/redirect-test/target' } )
9+ } ,
10+ )
911
1012export const Route = createFileRoute ( '/redirect-test/' ) ( {
1113 component : RouteComponent ,
Original file line number Diff line number Diff line change @@ -3,9 +3,11 @@ import { createFileRoute, redirect } from '@tanstack/solid-router'
33import { createServerFn , useServerFn } from '@tanstack/solid-start'
44import { Suspense } from 'solid-js'
55
6- const $redirectServerFn = createServerFn ( { method : 'GET' } ) . handler ( async ( ) => {
7- throw redirect ( { to : '/redirect-test/target' } )
8- } )
6+ const $redirectServerFn = createServerFn ( { method : 'GET' } ) . handler (
7+ async ( ) => {
8+ throw redirect ( { to : '/redirect-test/target' } )
9+ } ,
10+ )
911
1012export const Route = createFileRoute ( '/redirect-test/' ) ( {
1113 component : RouteComponent ,
You can’t perform that action at this time.
0 commit comments