generated from mitchell/rust_template
When validation happens #13
Labels
No Label
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: MarinoDev/leptos_form_tool#13
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Right now, validation happens on set. Moving this to get would make sure that if another component updates the value, the validation for the first component still runs. This might or might not be desired behavior.
If you are editing a value and it fails the validation for a different control, this may not be good. If it fixes a validation, this is probably good.
We could make it so that the validation runs on get, and if it succeeds, set the validation, but if it fails, dont.
Validation now runs on get, only updating on success. This way you can fix the validation for one component by updating a different one.