uniforms
uniforms copied to clipboard
zod "lazy" support
When having zod schemas that make use of z.lazy()
, form generation fails.
export const colorMappingSchema = z
.object({ attribute: z.string(), colorMap: z.string() })
export const errorWithLazy = z.object({
color: z.lazy(() => colorMappingSchema), // will fail here
name: z.string(),
})
Used versions:
├─┬ [email protected]
├─┬ [email protected]
└── [email protected]