ui/client/features/pages-editor/hooks/useImpact
Cockpit client (features), next. Source: ui/client/features/pages-editor/hooks/useImpact.tsx.
Functions#
useImpact()#
useImpact(
feature,file,contentHash):PageImpact|null
Defined in: ui/client/features/pages-editor/hooks/useImpact.tsx:9
Inspector "Impact" section: computed once per open file (not per node selection), since the blast radius is a property of the file, not of which element inside it happens to be selected. Refetches when the file's content hash changes (i.e. after every save), ignoring stale responses.
Parameters#
feature
string
file
string
contentHash
string
Returns#
PageImpact | null