TanStackT
TanStack14mo ago
9 replies
managerial-maroon

How can I use zod discriminated union for search params?

I have a list of search params and some of them should not be present if a search param (let's say it's called mode) has a certain enum value. I've tried various things but no success
Was this page helpful?