Line

ui/client/features/diagnostics/hooks/useDiagnostics

Cockpit client (features), v0.9. 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