Skip to content

[Feat]: When the input component's custom rule expression value changes, it will trigger the custom rule to recalculate. #1095

@Just1nWang

Description

@Just1nWang

Is your feature request related to a problem? Please describe.
The input component can now perform data validation through custom rules, but it cannot meet the requirements when data needs to be validated through a query.
I want to use the value from an input component as a parameter to call an API query for existence checking. The result of this API call will determine whether the validation passes.
Since the query is asynchronous, when the API call succeeds and the validation rule expression result changes, the validation rule does not get triggered again. Only when the input value changes, the expression result is recalculated, but at that moment, the expression computes the result based on the previous data validation result.

Describe the solution you'd like
When the result of a custom rule expression changes, it will trigger the custom rule to recalculate.

Metadata

Metadata

Labels

ComponentsDedicated to Frontend Visual ComponentsJavascript FrontendPull requests that update Javascript code

Projects

Status

📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions