dont get meta data in field validator if `validator.length !== 3`
bdkent opened this issue · comments
Are you submitting a bug report or a feature request?
bug report
What is the current behavior?
field validators do not get meta data when passed through a higher level function (or anything that does not have explicit args) because there is an explicit validator.length === 3
check (assumedly for performance reasons?)
What is the expected behavior?
I would like to be able to pass a validator function through something like debounce
or React's useCallback
hook and still get the meta data. I have to hack it right now.
Sandbox Link
What's your environment?
4.18.6 in browser