Skip to content

usePreviewStandalone

usePreviewStandalone(key): StandaloneResult | undefined

The posted draft for a <StandaloneComponent id>, or undefined outside preview / before Composer has resolved it. <StandaloneComponent> uses this itself; exported for a consumer that wants the raw draft without the render-prop wrapper.

string

StandaloneResult | undefined