We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43a137d commit 3b3b7fcCopy full SHA for 3b3b7fc
1 file changed
packages/react-reconciler/src/ReactFiberScheduler.js
@@ -1841,6 +1841,11 @@ function findHighestPriorityRoot() {
1841
if (root === lastScheduledRoot) {
1842
break;
1843
}
1844
+ if (highestPriorityWork === Sync) {
1845
+ // Sync is highest priority by definition so
1846
+ // we can stop searching.
1847
+ break;
1848
+ }
1849
previousScheduledRoot = root;
1850
root = root.nextScheduledRoot;
1851
0 commit comments