Repository navigation
Replies: 2 comments
|
Ok, I changed my validation logic like this: const validation = Yup.object().shape({
domainName: Yup.string()
.required('The website URL is required')
.matches(URL_REGEX, 'Enter correct URL')
})
.test({
message: () => 'Cloudflare is not supported',
test: debounce(async ({ domainName }) => {
const res = await checkCloudflareStatus(domainName).unwrap()
if (!res.on_cloudflare) {
return false
}
return true
}, DEBOUNCE_TIME),
})It sends the request to the API without problems and I'm getting the response as
|
0 replies
|
Any other advice please? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello. How can solve my problem? The event.currentTarget.value is one step behind the Formik values
When I change the input I get the result in my console:

All reactions