Skip to main content
cngx-src documentation

InjectAsyncStateOptions

Interface

projects/common/data/async-state/inject-async-state.ts

Import#

import { InjectAsyncStateOptions } from '@cngx/common/data'

Description#

Configuration options for injectAsyncState.

Index#

Instance Properties#

debounce#number
Optional

Debounce time in ms for signal dependency changes. Prevents request storms when multiple signals change rapidly.

label#string
Optional

Human-readable label surfaced in CngxAsyncRegistry.activeOperations. Display only - never the registry key. Ignored unless register is set.

register#boolean
Optional

When true, register this state in the ambient CngxAsyncRegistry (if one is provided via provideAsyncRegistry()) for the injector's lifetime, and unregister automatically on destroy. Defaults to false - a no-op for existing callers, and a no-op when no registry is provided.