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

How to implement a preview in a split pane view using Sanity.io

3 replies
Last updated: May 18, 2023
Hello. I am trying to implement a preview in a split pane view in the studio and to accomplish the task, references need to be resolved. What is the best way of going about this? I have looked at User's sanity-plugin-utils and could not figure out what
SanityDocument
is...
May 18, 2023, 3:46 PM
The split plane is a React component, so you can resolve the references using the
useClient
hook within it. More on that here .
May 18, 2023, 5:10 PM
woot thanks
user M
! I was trying to figure out what i need as the way I had done it in the v2 sanity has been deprecated.
May 18, 2023, 5:11 PM
You’re very welcome!
May 18, 2023, 5:16 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?