I am a fan of ant-design.As the usage scenarios in business projects gradually increase, I find the getFieldValue function are not quite smart.The getFieldValue function will return undefined when render component, even though we set an initialValue props in a FormItem component.
I don't know why it's set like this,is there a reason this case?
I am a fan of ant-design.As the usage scenarios in business projects gradually increase, I find the
getFieldValue
function are not quite smart.ThegetFieldValue
function will return undefined when render component, even though we set aninitialValue
props in a FormItem component.I don't know why it's set like this,is there a reason this case?
Code example: