ui/client/features/pages-editor/hooks/usePreviewServerUrl
Cockpit client (features), v0.9. Source: ui/client/features/pages-editor/hooks/usePreviewServerUrl.tsx.
Functions#
usePreviewServerUrl()#
usePreviewServerUrl(
__namedParameters): (url) =>void
Defined in: ui/client/features/pages-editor/hooks/usePreviewServerUrl.tsx:12
#378: 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