Skip to main content

Function: useDynamicHelpText()

useDynamicHelpText(monitorType: "cdn-edge-consistency" | "dns" | "http" | "http-header" | "http-json" | "http-keyword" | "http-latency" | "http-status" | "ping" | "port" | "replication" | "server-heartbeat" | "ssl" | "websocket-keepalive"): DynamicHelpTextResult

Defined in: src/hooks/useDynamicHelpText.ts:82

Custom hook for dynamically loading monitor type help text.

Parametersโ€‹

monitorTypeโ€‹

Monitor type to load help text for.

"cdn-edge-consistency" | "dns" | "http" | "http-header" | "http-json" | "http-keyword" | "http-latency" | "http-status" | "ping" | "port" | "replication" | "server-heartbeat" | "ssl" | "websocket-keepalive"

Returnsโ€‹

DynamicHelpTextResult

Object containing help text data and loading state.

Remarksโ€‹

Provides monitor-specific help text with automatic loading state management. Handles cancellation of pending requests on unmount or monitor type changes using AbortController for proper cleanup.

Seeโ€‹

getMonitorHelpTexts for the IPC-backed helper powering this hook.