Line

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

ui/client/features/pages-editor/hooks/useGitStatus

Cockpit client (features), next. Source: ui/client/features/pages-editor/hooks/useGitStatus.tsx.

Functions#

useGitStatus()#

useGitStatus(feature, file, contentHash): PageGitStatus | null

Defined in: ui/client/features/pages-editor/hooks/useGitStatus.tsx:8

Tree-row dot: whether the open page file differs from main. Computed once per open file, refetched when its content hash changes (i.e. after every save).

Parameters#

feature

string

file

string

contentHash

string

Returns#

PageGitStatus | null