MCPcopy Create free account
hub / github.com/AudiusProject/apps / useStatusChange

Function useStatusChange

packages/common/src/hooks/useStatusChange.ts:11–43  ·  view source on GitHub ↗
(
  status: Status,
  {
    onLoad,
    onSuccess,
    onError,
    onIdle
  }: {
    onLoad?: (prevStatus: Status) => void
    onSuccess?: (prevStatus: Status) => void
    onError?: (prevStatus: Status) => void
    onIdle?: (prevStatus: Status) => void // Note: this doesnt call on first idle init; only on subsequent ones
  }
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

onLoadFunction · 0.85
onErrorFunction · 0.70
onSuccessFunction · 0.50

Tested by

no test coverage detected