Sometimes you need to perform a bunch of parallel validations and render the errors of all of them all together, instead of one by one. So you are looking for error accumulation. Validated is very handy for that. Learn:
- How to perform parallel validations over a typical example using a form.
- How to validate all of them all together in the end and render the errors at the same time.
- How Validated is very similar to Either where it handles two fixed cases: Valid and Invalid.
- Learn how to accumulate errors with Validated using a non empty list for the Invalid type.
Something went wrong
Lesson added to playlist
Create new playlist
Name can't be empty