Commit 8ca193d
committed
Stash the entangled async action lane on currentEventTransitionLane
When we're entangled with an async action lane we use that lane
instead of the currentEventTransitionLane. Conversely, if we start a new
async action lane we reuse the currentEventTransitionLane.
So they're basically supposed to be in sync but they're not if you resolve
the async action and then schedule new stuff in the same event. Then you
end up with two transitions in the same event with different lanes.
By stashing it like this we fix that but it also gives us an opportunity to
check just the currentEventTransitionLane to see if this event scheduled
any regular Transition updates or Async Transitions.1 parent 2bcf06b commit 8ca193d
File tree
2 files changed
+11
-10
lines changed- packages/react-reconciler/src
2 files changed
+11
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
645 | 646 | | |
646 | 647 | | |
647 | 648 | | |
648 | | - | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
649 | 658 | | |
650 | 659 | | |
651 | 660 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
360 | 359 | | |
361 | 360 | | |
362 | 361 | | |
| |||
779 | 778 | | |
780 | 779 | | |
781 | 780 | | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
| 781 | + | |
790 | 782 | | |
791 | 783 | | |
792 | 784 | | |
| |||
0 commit comments