From 50d908662e5dbec5c68605afd312d80e7ffb8b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Sat, 11 Apr 2020 10:30:05 +0800 Subject: [PATCH] docs: Update Form FAQ (#23138) * docs: Update Form FAQ * Update index.en-US.md --- components/form/index.en-US.md | 4 ++++ components/form/index.zh-CN.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md index 82b507a500..be6ccf348d 100644 --- a/components/form/index.en-US.md +++ b/components/form/index.en-US.md @@ -312,6 +312,10 @@ Before Modal open, children elements do not exist in the view. You can set `forc Components inside Form.Item with name property will turn into controlled mode, that makes `defaultValue` does not work anymore. Please try `initialValues` of Form to set default value. +### Why resetFields will re-mount component? + +`resetFields` will re-mount component under Field to clean up customize component side effect(like asyn data, cached state, etc.). It's by design. +