Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: reactive rules #4163

Merged
merged 5 commits into from Mar 7, 2024
Merged

Conversation

m0ksem
Copy link
Contributor

@m0ksem m0ksem commented Feb 29, 2024

The goal is to make validation in vuestic similar to Angular Forms. (see https://angular.io/guide/form-validation#cross-field-validation).

Reactive rules: if rule depends on reactive state and this state is changed rule must be recomputed.

Right now, validation is recalculated if any rule reactive state is updated, all rules are recalculated.
Validation triggers once per vue tick now, so even if a lot of validation triggered is called, validation will be calculated once.

@m0ksem m0ksem added the feature Something useful to end user label Feb 29, 2024
@m0ksem m0ksem self-assigned this Feb 29, 2024
@m0ksem m0ksem merged commit feb0302 into epicmaxco:develop Mar 7, 2024
2 checks passed
@m0ksem m0ksem deleted the fix/validation-reactive-deps branch March 7, 2024 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Something useful to end user
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant