mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Don't search beyond Sync roots for highest priority work (#13335)
This commit is contained in:
1 parent
43a137d9c1
commit
3b3b7fcbbd
1 file changed
+5
@@ -1841,6 +1841,11 @@ function findHighestPriorityRoot() {
|
||||
if (root === lastScheduledRoot) {
|
||||
break;
|
||||
}
|
||||
if (highestPriorityWork === Sync) {
|
||||
// Sync is highest priority by definition so
|
||||
// we can stop searching.
|
||||
break;
|
||||
}
|
||||
previousScheduledRoot = root;
|
||||
root = root.nextScheduledRoot;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user