Skip to content

Commit 58c68ba

Browse files
committed
Gate flushGestureMutations and flushGestureAnimations (#32605)
Normally these are gated by the whole commitGestureOnRoot path but in the case of an early commit these phases may need to be invoked. Earlier. Those paths weren't gated which I noticed when I started adding code to them. DiffTrain build for [3e95680](3e95680)
1 parent acc3720 commit 58c68ba

23 files changed

+560
-1351
lines changed

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.1.0-native-fb-5ccfcd17-20250312
1+
19.1.0-native-fb-3e956805-20250314

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<04572cf21bb1faec3d1449693f5c83dc>>
10+
* @generated SignedSource<<8a2d9de3633e78af674b727512adf310>>
1111
*/
1212

1313
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
404404
exports.useFormStatus = function () {
405405
return resolveDispatcher().useHostTransitionStatus();
406406
};
407-
exports.version = "19.1.0-native-fb-5ccfcd17-20250312";
407+
exports.version = "19.1.0-native-fb-3e956805-20250314";
408408
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<4c34a2c821174bc6aa4572b2ade804c2>>
10+
* @generated SignedSource<<f3fecc17777af4a1a49bcdad12d01bd0>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.1.0-native-fb-5ccfcd17-20250312";
206+
exports.version = "19.1.0-native-fb-3e956805-20250314";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<4c34a2c821174bc6aa4572b2ade804c2>>
10+
* @generated SignedSource<<f3fecc17777af4a1a49bcdad12d01bd0>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.1.0-native-fb-5ccfcd17-20250312";
206+
exports.version = "19.1.0-native-fb-3e956805-20250314";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js

Lines changed: 167 additions & 240 deletions
Large diffs are not rendered by default.

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js

Lines changed: 28 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<0f887ef727bb2b65bbbef335f9f3e584>>
10+
* @generated SignedSource<<fae311bcc819cc3fab89c7cbddd4da81>>
1111
*/
1212

1313
/*
@@ -12012,81 +12012,13 @@ function flushSpawnedWork() {
1201212012
flushSyncWorkAcrossRoots_impl(0, !1);
1201312013
}
1201412014
}
12015-
function flushGestureMutations() {
12016-
if (6 === pendingEffectsStatus) {
12017-
pendingEffectsStatus = 0;
12018-
var root = pendingEffectsRoot,
12019-
prevTransition = ReactSharedInternals.T;
12020-
ReactSharedInternals.T = null;
12021-
var previousPriority = ReactDOMSharedInternals.p;
12022-
ReactDOMSharedInternals.p = 2;
12023-
var prevExecutionContext = executionContext;
12024-
executionContext |= 4;
12025-
try {
12026-
var rootClone = root.gestureClone;
12027-
if (null !== rootClone) {
12028-
root.gestureClone = null;
12029-
var rootContainer = root.containerInfo;
12030-
var containerInstance =
12031-
9 === rootContainer.nodeType
12032-
? rootContainer.body
12033-
: "HTML" === rootContainer.nodeName
12034-
? rootContainer.ownerDocument.body
12035-
: rootContainer;
12036-
var containerParent = containerInstance.parentNode;
12037-
if (null === containerParent) throw Error(formatProdErrorMessage(552));
12038-
containerParent.removeChild(rootClone);
12039-
containerInstance.style.viewTransitionName = "root";
12040-
}
12041-
} finally {
12042-
(executionContext = prevExecutionContext),
12043-
(ReactDOMSharedInternals.p = previousPriority),
12044-
(ReactSharedInternals.T = prevTransition);
12045-
}
12046-
pendingEffectsStatus = 7;
12047-
}
12048-
}
1204912015
function releaseRootPooledCache(root, remainingLanes) {
1205012016
0 === (root.pooledCacheLanes &= remainingLanes) &&
1205112017
((remainingLanes = root.pooledCache),
1205212018
null != remainingLanes &&
1205312019
((root.pooledCache = null), releaseCache(remainingLanes)));
1205412020
}
1205512021
function flushPendingEffects(wasDelayedCommit) {
12056-
flushGestureMutations();
12057-
flushGestureMutations();
12058-
if (7 === pendingEffectsStatus) {
12059-
pendingEffectsStatus = 0;
12060-
var root = pendingEffectsRoot;
12061-
pendingFinishedWork = pendingEffectsRoot = null;
12062-
pendingEffectsLanes = 0;
12063-
var prevTransition = ReactSharedInternals.T;
12064-
ReactSharedInternals.T = null;
12065-
var previousPriority = ReactDOMSharedInternals.p;
12066-
ReactDOMSharedInternals.p = 2;
12067-
var prevExecutionContext = executionContext;
12068-
executionContext |= 4;
12069-
try {
12070-
var rootContainer = root.containerInfo;
12071-
var containerInstance =
12072-
9 === rootContainer.nodeType
12073-
? rootContainer.body
12074-
: "HTML" === rootContainer.nodeName
12075-
? rootContainer.ownerDocument.body
12076-
: rootContainer;
12077-
"root" === containerInstance.style.viewTransitionName &&
12078-
(containerInstance.style.viewTransitionName = "");
12079-
var documentElement = containerInstance.ownerDocument.documentElement;
12080-
null !== documentElement &&
12081-
"none" === documentElement.style.viewTransitionName &&
12082-
(documentElement.style.viewTransitionName = "");
12083-
} finally {
12084-
(executionContext = prevExecutionContext),
12085-
(ReactDOMSharedInternals.p = previousPriority),
12086-
(ReactSharedInternals.T = prevTransition);
12087-
}
12088-
ensureRootIsScheduled(root);
12089-
}
1209012022
flushMutationEffects();
1209112023
flushLayoutEffects();
1209212024
flushSpawnedWork();
@@ -12584,20 +12516,20 @@ function debounceScrollEnd(targetInst, nativeEvent, nativeEventTarget) {
1258412516
(nativeEventTarget[internalScrollTimer] = targetInst));
1258512517
}
1258612518
for (
12587-
var i$jscomp$inline_1568 = 0;
12588-
i$jscomp$inline_1568 < simpleEventPluginEvents.length;
12589-
i$jscomp$inline_1568++
12519+
var i$jscomp$inline_1543 = 0;
12520+
i$jscomp$inline_1543 < simpleEventPluginEvents.length;
12521+
i$jscomp$inline_1543++
1259012522
) {
12591-
var eventName$jscomp$inline_1569 =
12592-
simpleEventPluginEvents[i$jscomp$inline_1568],
12593-
domEventName$jscomp$inline_1570 =
12594-
eventName$jscomp$inline_1569.toLowerCase(),
12595-
capitalizedEvent$jscomp$inline_1571 =
12596-
eventName$jscomp$inline_1569[0].toUpperCase() +
12597-
eventName$jscomp$inline_1569.slice(1);
12523+
var eventName$jscomp$inline_1544 =
12524+
simpleEventPluginEvents[i$jscomp$inline_1543],
12525+
domEventName$jscomp$inline_1545 =
12526+
eventName$jscomp$inline_1544.toLowerCase(),
12527+
capitalizedEvent$jscomp$inline_1546 =
12528+
eventName$jscomp$inline_1544[0].toUpperCase() +
12529+
eventName$jscomp$inline_1544.slice(1);
1259812530
registerSimpleEvent(
12599-
domEventName$jscomp$inline_1570,
12600-
"on" + capitalizedEvent$jscomp$inline_1571
12531+
domEventName$jscomp$inline_1545,
12532+
"on" + capitalizedEvent$jscomp$inline_1546
1260112533
);
1260212534
}
1260312535
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -16187,16 +16119,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1618716119
0 === i && attemptExplicitHydrationTarget(target);
1618816120
}
1618916121
};
16190-
var isomorphicReactPackageVersion$jscomp$inline_1817 = React.version;
16122+
var isomorphicReactPackageVersion$jscomp$inline_1792 = React.version;
1619116123
if (
16192-
"19.1.0-native-fb-5ccfcd17-20250312" !==
16193-
isomorphicReactPackageVersion$jscomp$inline_1817
16124+
"19.1.0-native-fb-3e956805-20250314" !==
16125+
isomorphicReactPackageVersion$jscomp$inline_1792
1619416126
)
1619516127
throw Error(
1619616128
formatProdErrorMessage(
1619716129
527,
16198-
isomorphicReactPackageVersion$jscomp$inline_1817,
16199-
"19.1.0-native-fb-5ccfcd17-20250312"
16130+
isomorphicReactPackageVersion$jscomp$inline_1792,
16131+
"19.1.0-native-fb-3e956805-20250314"
1620016132
)
1620116133
);
1620216134
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16216,24 +16148,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1621616148
null === componentOrElement ? null : componentOrElement.stateNode;
1621716149
return componentOrElement;
1621816150
};
16219-
var internals$jscomp$inline_2291 = {
16151+
var internals$jscomp$inline_2254 = {
1622016152
bundleType: 0,
16221-
version: "19.1.0-native-fb-5ccfcd17-20250312",
16153+
version: "19.1.0-native-fb-3e956805-20250314",
1622216154
rendererPackageName: "react-dom",
1622316155
currentDispatcherRef: ReactSharedInternals,
16224-
reconcilerVersion: "19.1.0-native-fb-5ccfcd17-20250312"
16156+
reconcilerVersion: "19.1.0-native-fb-3e956805-20250314"
1622516157
};
1622616158
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
16227-
var hook$jscomp$inline_2292 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
16159+
var hook$jscomp$inline_2255 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
1622816160
if (
16229-
!hook$jscomp$inline_2292.isDisabled &&
16230-
hook$jscomp$inline_2292.supportsFiber
16161+
!hook$jscomp$inline_2255.isDisabled &&
16162+
hook$jscomp$inline_2255.supportsFiber
1623116163
)
1623216164
try {
16233-
(rendererID = hook$jscomp$inline_2292.inject(
16234-
internals$jscomp$inline_2291
16165+
(rendererID = hook$jscomp$inline_2255.inject(
16166+
internals$jscomp$inline_2254
1623516167
)),
16236-
(injectedHook = hook$jscomp$inline_2292);
16168+
(injectedHook = hook$jscomp$inline_2255);
1623716169
} catch (err) {}
1623816170
}
1623916171
exports.createRoot = function (container, options) {
@@ -16325,4 +16257,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1632516257
listenToAllSupportedEvents(container);
1632616258
return new ReactDOMHydrationRoot(initialChildren);
1632716259
};
16328-
exports.version = "19.1.0-native-fb-5ccfcd17-20250312";
16260+
exports.version = "19.1.0-native-fb-3e956805-20250314";

0 commit comments

Comments
 (0)