Safely parse a value using a Zod schema, returning undefined on failure. Useful for extracting fallback values when form validation fails.
Zod schema to parse with
Raw value to parse
Parsed value if successful, undefined otherwise
Safely parse a value using a Zod schema, returning undefined on failure. Useful for extracting fallback values when form validation fails.