Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.

web


web / lib/hooks/use-loading-states

lib/hooks/use-loading-states

Shared loading state management for list components.

Tracks per-item loading states (e.g., “syncing”, “deleting”) using a Record keyed by item ID. Used by schedules and scrapers list components.

Functions

useLoadingStates()

useLoadingStates(): object

Returns

object

states

states: Record<number, string>

setLoading

setLoading: (id, state) => void

Parameters
id

number

state

string

Returns

void

clearLoading

clearLoading: (id) => void

Parameters
id

number

Returns

void

Last updated on