Skip to content

Conversation

@rosvik
Copy link
Member

@rosvik rosvik commented May 27, 2025

The optional() setting in Zod accepts a value or undefined, which sometimes causes problems with null values from the backend. It therefore makes sense to use nullish, which accepts both null and undefined.

@rosvik rosvik closed this Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants