-
-
Notifications
You must be signed in to change notification settings - Fork 50k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
preserve为false的FormItem销毁时会触发所有添加了shouldUpdate表单rerender #50283
Labels
improvement
improve some features
Comments
Start a new pull request in StackBlitz Codeflow. |
为什么 B 要有内容,才会触发 C render 呢? |
是的,shouldUpdate 会重新跑一次防止 preserve 的负作用。我感觉也是可以跑一次 shouldUpdate 来看看要不要 rerender。 |
This was referenced Sep 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction link
Steps to reproduce
What is expected?
C表单不进行render
What is actually happening?
C表单render了一遍
可能会引起性能问题
定位源码是remove时判断的是
shouldUpdate
而不是shouldUpdate && requireUpdate(shouldUpdate, xxx, xxx)
, 不知道是否是为了解决注释中提到的依赖传递的问题而这样写的。The text was updated successfully, but these errors were encountered: