ant design from 初始化无效

useEffect(() => form.resetFields(), [initialValues])

  

I had the same problem, sometimes the initialValues are empty, and I need to fetch the initialValues form a remote server.

I've fixed it in this way

 
原文地址:https://www.cnblogs.com/winyh/p/14351791.html