How to check the form form of ant-design component Library asynchronously

problem description

how ant-design component library form forms are asynchronously checked

the environmental background of the problems and what methods you have tried

I use the set of things that redux, does not maintain state, internally and I use onvalueschange,mapPropsToFields. After that, I now want to send a shopid to initiate an ajax request after entering blur, and then wait for the return value to trigger callback (new Error ("). I used promise to return a value (also used async,await) to come back to judge and output callback, but the console above and below the callback can be typed out. Only this callback display is not on the page, and there are my other form items. When I click submit and overall check, I do not show those callback prompts in scarlet letters

.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

I hope to be able to perform verification (both for asynchronous Synchronize). Since I used onvalueschange,mapPropsToFields, the check has not worked well


antd's From uses async-validator

.

this component already supports ajax checking:

  

will only be executed once

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf27ef-14341.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf27ef-14341.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?