When validation happens #13

Closed
opened 2024-06-05 21:25:43 +00:00 by mitchell · 1 comment
Owner

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.

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.
Author
Owner

Validation now runs on get, only updating on success. This way you can fix the validation for one component by updating a different one.

Validation now runs on get, only updating on success. This way you can fix the validation for one component by updating a different one.
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: MarinoDev/leptos_form_tool#13
No description provided.