Line

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

ui/client/features/component-docs/hooks/useComponentUsedBy

Cockpit client (features), next. Source: ui/client/features/component-docs/hooks/useComponentUsedBy.tsx.

Functions#

useComponentUsedBy()#

useComponentUsedBy(path): object

Defined in: ui/client/features/component-docs/hooks/useComponentUsedBy.tsx:9

"Used by": the pages that import this component, transitively. null while loading or with nothing selected. A network failure is an ok:false answer, never a throw.

Parameters#

path

string | null

Returns#

object

loading

loading: boolean

usedBy

usedBy: UsedByResponse | null