dillon1000/react
Commit
Browse files Entangle Gesture revert commit with the corresponding Action commit (#35487)
Stacked on #35486. When a Gesture commits, it leaves behind work on a Transition lane (`revertLane`). This entangles that lane with whatever lane we're using in the event that cancels the Gesture. This ensures that the revert and the result of any resulting Action commits as one batch. Typically the Action would apply a new state that is similar or the same as the revert of the Gesture. This makes it resilient to unbatching in #35392.
Changed paths2 files
First-parent comparisonpackages/react-reconciler/src/ReactFiberGestureScheduler.js ModifiedM packages/react-reconciler/src/ReactFiberHooks.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…