Line

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

ui/client/features/shell/hooks/useWorking

Cockpit client (features), next. Source: ui/client/features/shell/hooks/useWorking.tsx.

Variables#

WORKING_HOLD_MS#

const WORKING_HOLD_MS: 900 = 900

Defined in: ui/client/features/shell/hooks/useWorking.tsx:8

How long the indicator keeps going after the last piece of work ends, so a command that answers in 80 ms still shows one visible cycle instead of a flicker.

Functions#

useWorking()#

useWorking(runningProcesses, holdMs?): boolean

Defined in: ui/client/features/shell/hooks/useWorking.tsx:15

Is the framework working right now? True while a mechanical command or the Import Wizard is running (counted where every request already passes, lib/workActivity.ts) or a Process is running (runningProcesses, from the Processes drawer's own data). The top-bar brand mark animates only while this is true. Nothing here calls a model or the network.

Parameters#

runningProcesses

number

holdMs?

number = WORKING_HOLD_MS

Returns#

boolean