Line

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

ui/client/features/diagnostics/hooks/useDiagnostics

Cockpit client (features), next. Source: ui/client/features/diagnostics/hooks/useDiagnostics.tsx.

Functions#

useDiagnostics()#

useDiagnostics(enabled): DiagnosticsApi

Defined in: ui/client/features/diagnostics/hooks/useDiagnostics.tsx:11

Runs construct validate for the current project. enabled starts the first run automatically (once the project is known); run re-runs on demand. Overlapping runs are dropped so a slow one cannot overwrite a newer result.

Parameters#

enabled

boolean

Returns#

DiagnosticsApi