You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to demo how to render preview Sanity content in a live demo environment, maybe by serving https://github.com/portabletext/react-portabletext w/ client:load when in preview mode, to get live rendering of the content?
ex,
---import {PortableText} from'@portabletext/react'import { IS_PREVIEW } from'~/env';---{IS_PREVIEW?
<PortableTextclient:loadvalue={[/* array of portable text blocks */]}components={/* optional object of custom components to use */}
/> :
<PortableTextvalue={[/* array of portable text blocks */]}components={/* optional object of custom components to use */}
/>}
The text was updated successfully, but these errors were encountered:
It would be great to demo how to render preview Sanity content in a live demo environment, maybe by serving https://github.com/portabletext/react-portabletext w/
client:load
when in preview mode, to get live rendering of the content?ex,
The text was updated successfully, but these errors were encountered: