Skip to main content

README

Agent Runtimes


Agent Runtimes / hooks/useProgressStore

hooks/useProgressStore

Global "top progress bar" store.

Drives a single, app-wide GitHub-style indeterminate progress bar rendered at the bottom edge of a view header. Any UI component can signal that background work is happening without owning its own spinner.

Concurrency is handled by reference-counting active tasks keyed by an arbitrary id, so multiple overlapping loads keep the bar visible until the last one finishes. Use ProgressState.setTaskActive to bind the bar to a boolean loading flag, or ProgressState.startTask / ProgressState.stopTask for imperative start/stop pairs. The useProgressTask hook wraps this store for the common effect-driven case.

Type Aliases

Variables

References

default

Renames and re-exports useProgressStore