You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// With Zod v4, we can use the schema without the adapter
231
+
validateSearch: productSearchSchema,
232
+
})
233
+
```
234
+
235
+
The important part here is the following use of `Link` no longer requires `search` params:
217
236
218
237
```tsx
219
238
<Linkto="/shop/products" />
220
239
```
221
240
222
-
However the use of `catch` here overrides the types and makes `page`, `filter` and `sort``unknown` causing type loss. We have handled this case by providing a `fallback` generic function which retains the types but provides a `fallback` value when validation fails
241
+
In Zod v3, the use of `catch` here overrides the types and makes `page`, `filter` and `sort``unknown` causing type loss. We have handled this case by providing a `fallback` generic function which retains the types but provides a `fallback` value when validation fails:
0 commit comments