Skip to content

Commit 47bdd94

Browse files
test(scroll-restoration): use direct zod schema for validateSearch
Agent-Logs-Url: https://github.com/TanStack/router/sessions/bb5df371-ba70-4734-9012-8862a958211b Co-authored-by: schiller-manuel <[email protected]>
1 parent 1f88ce8 commit 47bdd94

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎e2e/react-start/scroll-restoration/src/routes/(tests)/nested-scroll-search.tsx‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
import { Link, createFileRoute } from '@tanstack/react-router'
22
import { z } from 'zod'
3-
import { zodValidator } from '@tanstack/zod-adapter'
43

54
export const Route = createFileRoute('/(tests)/nested-scroll-search')({
6-
validateSearch: zodValidator(
7-
z.object({
8-
query: z.string().optional(),
9-
}),
10-
),
5+
validateSearch: z.object({
6+
query: z.string().optional(),
7+
}),
118
component: Component,
129
})
1310

0 commit comments

Comments
 (0)