AsyncCondition
@ng-forge/dynamic-forms
Condition that evaluates based on a registered async function.
The function is resolved reactively — when dependent form values change, the function is re-evaluated (with debouncing). The result is cached per evaluation to avoid redundant calls.
Since LogicFn must return boolean synchronously, this condition uses
a signal-based async resolution pattern internally.
@public
Signature
interface AsyncConditionProperties
| Name | Type | Description |
|---|---|---|
type | "async" | - |
asyncFunctionName | string | Name of the registered async condition function |
pendingValue ? | boolean | Value to return while async resolution is pending. Choose based on the logic type and desired UX:
- For |
debounceMs ? | number | Debounce ms for re-evaluation. |
packages/dynamic-forms/src/lib/models/expressions/conditional-expression.ts:115