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

关于理念篇-新的React架构 #98

Open
xiaoqufengdi opened this issue Sep 25, 2021 · 1 comment
Open

关于理念篇-新的React架构 #98

xiaoqufengdi opened this issue Sep 25, 2021 · 1 comment

Comments

@xiaoqufengdi
Copy link

image
“在阐述新React架构特点时,Scheduler到Reconciler的工作时说如果有更高优任务需要先更新或者当前帧的时间没有剩余时间,步骤会中断,renderer后用户也不会看见更新不完全的DOM”。
这种描述是不是有问题? 如果有更高优先级的任务需要先更新,会中断去redenerer高优先级的任务,那么当前的任务在当前帧实际上没有更新,那用户看到的是依然是更新不完全的DOM界面,只能说同一优先级的任务会一起更新到同一帧,不同优先级不保证 ,这样理解对不对?

@BetaSu
Copy link
Owner

BetaSu commented Sep 25, 2021

这部分 可以看 状态更新 这一章有详细解释

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

No branches or pull requests

2 participants