Skip to main content
cngx-src documentation

CreateAsyncStateOptions

Interface

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

Import#

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

Description#

Configuration options for createAsyncState.

Index#

Properties

Instance Properties#

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.