You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This operator will receive an observable prop which will receive input when a field is requested for validation. It should also receive enough information to make an informed validation decision. Perhaps the form model will do
Simultaneously, the form will receive an update which says the field is undergoing validation
The operator's returned observable should receive input each time a field is validated. It should not be necessary to return 1:1 validation results for validation requests. There could be many validation results for a single input
I propose we improve validation via observables.
At it's core:
Where the first observable input is of type
And returned observable should output
Used like so:
Examples
Very simple
ASync validation
Assuming there's a single field
username
But its complicated
Such a powerful API is difficult to grok.
90% of the time, developers will just want to use a simple function.
This could be achieved very simply with helper functions. i.e.
The text was updated successfully, but these errors were encountered: