Skip to content
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

[Bug Report] 性能问题,mapStatus导致所有组件校验后重复渲染 #3175

Closed
1 task
yee94 opened this issue Jun 9, 2022 · 0 comments · Fixed by #3183
Closed
1 task

[Bug Report] 性能问题,mapStatus导致所有组件校验后重复渲染 #3175

yee94 opened this issue Jun 9, 2022 · 0 comments · Fixed by #3183

Comments

@yee94
Copy link
Contributor

yee94 commented Jun 9, 2022

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

修改第一个Input,打开日志面板,发现第二个组件也在执行渲染

What is expected?

其他组件不应该执行渲染

What is actually happening?

修改第一个Input,打开日志面板,发现第二个组件也在执行渲染

Package

@formily/next@2.1.4


发现是 next 的 mapStatus 使用了 field['invalid'], 导致收集到了 invalid 的setter 订阅,但该值一直为FALSE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant