withDocument function in V3? #3826
Answered
by
aulonm
popmatik
asked this question in
Sanity Studio Support
-
I've made use of withDocument in V2 to provide custom input components with values from the parent document. Is that function still available in V3 or is there an equivalent please? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
aulonm
Nov 14, 2022
Replies: 1 comment 1 reply
-
They have a section in the migration guide to use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kmelve
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
They have a section in the migration guide to use
useFormValue
if you usedwithDocument
before. https://beta.sanity.io/docs/platform/studio/v2-to-v3/migration-cheat-sheat#accessing-the-document-from-your-custom-form-component