Closed this issue 2 years ago · 2 comments
在 17.0.2 中,runWithPriority 查看其实现已经是同步。这部分有点疑惑,不知道 @7kms 是怎么理解?
不要疑惑哈, 这里确实是写错了哈, runWithPriority这个函数本身是同步调用的.
runWithPriority
它设置了当前的调度优先级为priorityLevel, 如果在flushPassiveEffectsImpl中处理effect时又发起了新的更新, 那么新的update.lane将会受到这个priorityLevel影响.
priorityLevel
flushPassiveEffectsImpl
effect
update.lane
感谢,解释的非常的好。秒懂。