Skip to content

Function: useResourceStatusPublisher()

useResourceStatusPublisher(id, label, options?): object

Register a publisher with the nearest ResourceStatusProvider. Safe to call without a provider — publish/unpublish are no-ops.

string

Stable identifier (e.g. a useId() value).

string

Human-readable label surfaced via affectedLabels.

string

object

publish: (status) => void

ResourceStatus | null

void

unpublish: () => void

void