defineField & defineType best practices? #3790
Unanswered
djenntt
asked this question in
Sanity Studio Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was exploring v3 this weekend and was curious why defineField is necessary if wrapped in defineType ? I see the example here but if I take away defineField wrapping children in a fields array with defineType wrapping the parent, it doesn't seem like anything changes - also looks neater imo. Is it best practice to always wrap every field or just add when necessary?
Beta Was this translation helpful? Give feedback.
All reactions