Line

ui/client/features/dev-server/hooks/useDevServerUrl

Cockpit client (features), v0.9. Source: ui/client/features/dev-server/hooks/useDevServerUrl.tsx.

Functions#

useDevServerUrl()#

useDevServerUrl(status, onUrl?): void

Defined in: ui/client/features/dev-server/hooks/useDevServerUrl.tsx:10

Tells the screen that owns the preview where the server can be reached: its address the moment it starts answering, and null when it is no longer running. Called only on a change, never on every render.

Parameters#

status

DevServerStatus | null

onUrl?

(url) => void

Returns#

void