ui/client/features/processes/hooks/useProcessesLive
Cockpit client (features), next. Source: ui/client/features/processes/hooks/useProcessesLive.tsx.
Functions#
useProcessesLive()#
useProcessesLive(
projectDir,dispatch): () =>Promise<void>
Defined in: ui/client/features/processes/hooks/useProcessesLive.tsx:13
Keeps the process list current: an initial read, then the read-only socket, reconnecting when it drops and re-reading on every (re)connect so nothing that changed while it was down is missed. Re-runs when the project changes, since the server answers for one project at a time.
Parameters#
projectDir
string | null
dispatch
Dispatch<ProcessesAction>
Returns#
() => Promise<void>