In Sanity how to pass down initialValue to custom type that’s an object?
Looking to dynamically add validation to a mapped array but I’m having trouble in the validation process wit getting the day of the week when the isOpen
boolean is true or not so that the following string types openingHours
and closingHours
will be set to required.
How to localize fields that have an options list in Sanity?
I have this field in a Sanity project:
Sanity. Error of component not defined: code, using nesting listItem
I’m starting a project using Sanity and while doing the setup for Structure in localhost I found the following error:
Reusing pieces of sanity groq queries and still being able to use the typegen tool
Following this part of the documentation I was able to generate the corresponding types for my groq queries -> https://www.sanity.io/docs/sanity-typegen#c3ef15d8ad39