Skip to content

Commit b2b4dd8

Browse files
committed
typo
1 parent 6520cb9 commit b2b4dd8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/blog/search-params-are-state.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,12 @@ export const Route = createFileRoute('/dashboard/$dashboardId')({
150150

151151
When you match \`/dashboard/123?sort=desc&filter=active\`, the parent validates \`sort\`, the child validates \`filter\`, and everything works together seamlessly.
152152

153-
Try to redefine or omit the required parent param in the child route? Type error.
153+
Try to redefine the required parent param in the child route to something entirely different? Type error.
154154

155155
```ts
156-
// ❌ Type error: missing required \`sort\` param from parent
157156
validateSearch: z.object({
157+
// ❌ Type error: boolean does not extend 'asc' | 'desc' from parent
158+
sort: z.boolean(),
158159
filter: z.string().optional(),
159160
})
160161
```

0 commit comments

Comments
 (0)