NewOldMax / react-form-validator-core

Core validator component for react forms
MIT License
94 stars 44 forks source link

For dynamic checking, adding, removing of validation rules we should … #72

Closed rowrowrowrow closed 4 years ago

rowrowrowrow commented 4 years ago

…be able to check a rule exists

rowrowrowrow commented 4 years ago

In my case I'm dynamically adding validators depending on user choices. I'd like to check in real time whether a validator already exists to avoid adding it again because the validator needs to be created on-demand. So for performance reasons I'd rather check for its existence than create and add the same validator again.

NewOldMax commented 4 years ago

@rowrowrowrow thank you for PR