Skip to content

Commit 0af9def

Browse files
committed
Apply facebook#20778 to new fork, too
1 parent 3d10eca commit 0af9def

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

packages/react-reconciler/src/ReactFiberWorkLoop.new.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -465,15 +465,7 @@ export function requestUpdateLane(fiber: Fiber): Lane {
465465
} else {
466466
if (enableNativeEventPriorityInference) {
467467
const eventLanePriority = getCurrentEventPriority();
468-
if (eventLanePriority === DefaultLanePriority) {
469-
// TODO: move this case into the ReactDOM host config.
470-
const schedulerLanePriority = schedulerPriorityToLanePriority(
471-
schedulerPriority,
472-
);
473-
lane = findUpdateLane(schedulerLanePriority, currentEventWipLanes);
474-
} else {
475-
lane = findUpdateLane(eventLanePriority, currentEventWipLanes);
476-
}
468+
lane = findUpdateLane(eventLanePriority, currentEventWipLanes);
477469
} else {
478470
const schedulerLanePriority = schedulerPriorityToLanePriority(
479471
schedulerPriority,

0 commit comments

Comments
 (0)