How do I make search params optional in navigate()?
Getting the attached error for a route declared like this:
Is there something I'm not doing to enforce that the search params are optional on this route? I've tried also adding optional() to the zod schema, but it doesn't change anything, nor does (s?) as a validateSearch arg, or SearchSchema.parse(s ?? {}).

1 Reply
deep-jade•3w ago
pass the schema directly