Skip to content

LIVE_PREVIEW_WINDOW_NAME

const LIVE_PREVIEW_WINDOW_NAME: "vex-live-preview" = "vex-live-preview"

Defined in: packages/core/src/livePreview/constants.ts:48

window.name of a live-preview surface. LivePreviewProvider writes it into an unnamed window the first time preview activates there through LIVE_PREVIEW_QUERY_PARAM, and useIsLivePreviewActive accepts it in place of that param. A window’s name survives every navigation inside its iframe or tab and is never shared with another tab, so a reload or an in-site link that drops the query param keeps the preview on.