README
Agent Runtimes / hooks/useProgressTask
hooks/useProgressTask
Reusable hook that binds a boolean loading flag to the global top progress
bar (useProgressStore). While active is true the shared bar shows
activity; it is automatically released when active turns false or the
component unmounts.
Because the bar reference-counts tasks by id, multiple overlapping loads (across any views) keep the single app-wide bar visible until the last one completes.
Example
const { isPending } = useVolumes();
useProgressTask('volumes', isPending);
Functions
References
default
Renames and re-exports useProgressTask