projects/core/utils/build-async-state-view.ts
import { AsyncStateViewSources } from '@cngx/core/utils'
Source signals for building a read-only async state view.
Signal
The most recent successful result.
The most recent error.
Whether the first successful load has not yet completed. Defaults to computed(() => false) when omitted — appropriate for mutation producers that never show a skeleton. Query producers should pass computed(() => !hadSuccess()).
computed(() => false)
computed(() => !hadSuccess())
Timestamp of the last successful load.
Progress 0–100, or undefined for indeterminate.
undefined
Single source of truth — the current status.