-
https://codesandbox.io/s/quizzical-raman-fr91m?file=/App.tsx |
Beta Was this translation helpful? Give feedback.
Answered by
janryWang
Jun 19, 2021
Replies: 2 comments 1 reply
-
要分清,生命周期钩子和校验器的区别,你用生命周期钩子,它是遇到校验它就会执行的,且不区分triggerType,triggerType只是会控制校验器的执行时机,比如你自定义一个validator,同时指定triggerType,那么这个validator的执行时机就会受triggerType控制 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
janryWang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
要分清,生命周期钩子和校验器的区别,你用生命周期钩子,它是遇到校验它就会执行的,且不区分triggerType,triggerType只是会控制校验器的执行时机,比如你自定义一个validator,同时指定triggerType,那么这个validator的执行时机就会受triggerType控制