Skip to content

Form的数据在页面切换时不会彻底清空 #3957

Answered by liudichen
lppoi asked this question in Q&A [2.x]
Discussion options

You must be logged in to vote

const form = useMemo(()=>createForm({initialValues}),[initialValues]),编辑或新增时重新生成form实例可能就可以了吧,不共用form实例

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lppoi
Comment options

Answer selected by lppoi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants