Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Discussion on implementing "withDocument" during migration to v3 and fixing issues with using Sanity client outside React.

7 replies
Last updated: Jun 22, 2023
Hi team, I am currently migrating to v3.
How to implement the "withDocument" ?

import { withDocument } from 'part:@sanity/form-builder';
Jun 21, 2023, 9:15 AM
Hey Mark, here's the update for
withDocument
per the Migration Cheat Sheet .
Jun 21, 2023, 6:02 PM
Thanks! I got it right. ❤️
Jun 22, 2023, 12:38 AM
Hi
user B
, how about the client?Use case is custom function like slugify
Jun 22, 2023, 2:10 AM
I have created a hook for react component.
Jun 22, 2023, 2:11 AM
I am referring to using sanity client outside React.
Jun 22, 2023, 2:37 AM
I already fixed it. Thanks!
Jun 22, 2023, 5:56 AM
Great! Nice work, Mark!
Jun 22, 2023, 3:28 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?