We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21fdf30 commit b10e38dCopy full SHA for b10e38d
packages/react-reconciler/src/ReactFiberRootScheduler.js
@@ -257,7 +257,6 @@ function processRootScheduleInMicrotask() {
257
// preserve the scroll position of the previous page.
258
syncTransitionLanes = currentEventTransitionLane;
259
}
260
- currentEventTransitionLane = NoLane;
261
262
263
const currentTime = now();
@@ -315,6 +314,9 @@ function processRootScheduleInMicrotask() {
315
314
if (!hasPendingCommitEffects()) {
316
flushSyncWorkAcrossRoots_impl(syncTransitionLanes, false);
317
+
318
+ // Reset Event Transition Lane so that we allocate a new one next time.
319
+ currentEventTransitionLane = NoLane;
320
321
322
function scheduleTaskForRootDuringMicrotask(
0 commit comments