Ant design form realizes the echo of background error message

problem description

use ant design Form.create to create a form and report an error You cannot set field before registering it when you need to display the error in the background on the corresponding attribute.

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

after messing around for a long time, when I found the reason, the form object was set to null, so the error information could not be set with the form.setFileds method

.

related codes

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

   let FormEle = Form.create({
                fieldNameProp: "appbir"
            })(CustomizedForm);
            
                <Panel disabled={disabled} header={header} key={index}>
                    <FormEle wrappedComponentRef={(ref) => {
                        formInstance[index]=ref.props.form;
                    }}/>
                </Panel>
            

ref.props.form returns null

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

do not set form to null

May.06,2022
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-1b47574-2c879.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-1b47574-2c879.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?