withLoadingDefaults
projects/ui/feedback/config/feedback-config.ts
Description#
Set default timing for all loading indicators and overlays.
Forwards into the Level-1 CNGX_LOADING_CONFIG cascade so the gated
surfaces (indicator, overlay, async-container, skeleton) all read the same
defaults. Prefer provideLoadingConfig(withShowDelay(...), withMinDwell(...))
from @cngx/core/utils directly; this feature is kept for back-compat.
Note: this forwarder provides a full CNGX_LOADING_CONFIG value, so under
DI last-wins it replaces the whole config - including spinnerVsSkeletonCutoff,
which resets to its default. Set the cutoff through
provideLoadingConfig(withSpinnerVsSkeletonCutoff(...)) rather than combining
it with this back-compat forwarder.
Individual components can still override via their [delay] and [minDwell] inputs.
provideFeedback(withLoadingDefaults({ delay: 300, minDuration: 600 }))