We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Form
背景
const A = ({}:{onChange}) => { return <div>123</div> } <Form> <Form.Item name="a"><A/></Form.Item> <Form.Item name="b"><Input/></Form.Item> </Form>
onChange
理论上,onChange应该都是不变的
需求
The text was updated successfully, but these errors were encountered:
#4279 一个问题吧?
Sorry, something went wrong.
嗯 应该算上个问题的子问题
就算onChange是不变的 A组件还是会重渲染 因为每当数据改变的时候 Form组件整个都会重渲染 跟目前的实现方式有关 我计划后续加一个新的api 是否开启对表单Item组件的渲染优化 通过这个功能去避免一些不必要的重渲染
bindoon
No branches or pull requests
Component
Form
Feature Description
背景
onChange
会一直更新理论上,onChange应该都是不变的
需求
The text was updated successfully, but these errors were encountered: