-
Notifications
You must be signed in to change notification settings - Fork 972
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] 组件重复渲染 #344
Comments
@jinasonlin 谢谢issue,这里确实有不少优化的空间。能问一下你的profiler上怎么显示“why did this render”的?我这边似乎没有。 关于重复渲染和优化,说几点感想 |
这块做了一定的优化了。底层增加了useMemo,context也根据使用频率切了好几份。 |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1.依赖仓库的版本:
2.问题描述:
表单结构复杂的情况,快速输入数据存在明显卡顿现象。
通过 Profiler 排查,发现更新局部数据也会导致整个组件树重新渲染。同时目前提供的 debounceInput 并不能优化渲染问题。
希望得到优化,谢谢。
3.最小复现demo:
https://codesandbox.io/s/zidingyizujian-forked-8q325
The text was updated successfully, but these errors were encountered: