I hit a dead end again with the select component...
I want to display labels and validate values!
As I've read in the docs, zod validates the labels, is there a workaround for this usecase?
country: z
.nativeEnum(
regions.reduce(
(acc, region) => {
acc[region.code] = region.displayName;
return acc;
},
{} as Record<string, string>,
),
)
I hit a dead end again with the select component...
I want to display labels and validate values!
As I've read in the docs, zod validates the labels, is there a workaround for this usecase?