Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/live-preview/hooks/usePreviewServerUrl

Cockpit client (features), next. Source: ui/client/features/live-preview/hooks/usePreviewServerUrl.tsx.

Functions#

usePreviewServerUrl()#

usePreviewServerUrl(__namedParameters): (url) => void

Defined in: ui/client/features/live-preview/hooks/usePreviewServerUrl.tsx:12

: the dev server the Cockpit started is framed like any other preview URL. Returns the handler the dev-server card calls with its address (and with null when it stops); on a stop only that address is let go, so a URL the person typed themselves is left alone.

Parameters#

__namedParameters

Framing

Returns#

(url) => void