Skip to content

Commit 4ab120c

Browse files
committed
Add plumbing for onDefaultTransitionIndicator (#33150)
This just adds the options at the root and wire it up to the root but it doesn't do anything yet. DiffTrain build for [9b79292](9b79292)
1 parent 49d9f3f commit 4ab120c

24 files changed

+519
-495
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.2.0-native-fb-ac068292-20250508
1+
19.2.0-native-fb-9b79292a-20250508

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<<0f0cdbc0ee2edcb4b4b9aa1388adab0b>>
10+
* @generated SignedSource<<52ff017ed5093ae8c5981421a6e71f4b>>
1111
*/
1212

1313
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
404404
exports.useFormStatus = function () {
405405
return resolveDispatcher().useHostTransitionStatus();
406406
};
407-
exports.version = "19.2.0-native-fb-ac068292-20250508";
407+
exports.version = "19.2.0-native-fb-9b79292a-20250508";
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<<d449cb4e74f571609a3d37ce1f13673f>>
10+
* @generated SignedSource<<77db10b684b9429e6f14fc2fe20c105a>>
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.2.0-native-fb-ac068292-20250508";
206+
exports.version = "19.2.0-native-fb-9b79292a-20250508";

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<<d449cb4e74f571609a3d37ce1f13673f>>
10+
* @generated SignedSource<<77db10b684b9429e6f14fc2fe20c105a>>
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.2.0-native-fb-ac068292-20250508";
206+
exports.version = "19.2.0-native-fb-9b79292a-20250508";

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

Lines changed: 132 additions & 133 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: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<fdd3c5a312c8af31f5da81b868897481>>
10+
* @generated SignedSource<<ce68da990bcbc6e1a85cdd1d9ddb8dc7>>
1111
*/
1212

1313
/*
@@ -16314,6 +16314,7 @@ function FiberRootNode(
1631416314
onUncaughtError,
1631516315
onCaughtError,
1631616316
onRecoverableError,
16317+
onDefaultTransitionIndicator,
1631716318
formState
1631816319
) {
1631916320
this.tag = tag;
@@ -16357,11 +16358,11 @@ function createFiberRoot(
1635716358
hydrationCallbacks,
1635816359
isStrictMode,
1635916360
identifierPrefix,
16361+
formState,
1636016362
onUncaughtError,
1636116363
onCaughtError,
1636216364
onRecoverableError,
16363-
transitionCallbacks,
16364-
formState
16365+
onDefaultTransitionIndicator
1636516366
) {
1636616367
containerInfo = new FiberRootNode(
1636716368
containerInfo,
@@ -16371,6 +16372,7 @@ function createFiberRoot(
1637116372
onUncaughtError,
1637216373
onCaughtError,
1637316374
onRecoverableError,
16375+
onDefaultTransitionIndicator,
1637416376
formState
1637516377
);
1637616378
containerInfo.hydrationCallbacks = hydrationCallbacks;
@@ -17026,6 +17028,9 @@ function retryIfBlockedOn(unblocked) {
1702617028
}
1702717029
}
1702817030
}
17031+
function defaultOnDefaultTransitionIndicator() {
17032+
return function () {};
17033+
}
1702917034
function ReactDOMRoot(internalRoot) {
1703017035
this._internalRoot = internalRoot;
1703117036
}
@@ -17067,16 +17072,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1706717072
0 === i && attemptExplicitHydrationTarget(target);
1706817073
}
1706917074
};
17070-
var isomorphicReactPackageVersion$jscomp$inline_2013 = React.version;
17075+
var isomorphicReactPackageVersion$jscomp$inline_2015 = React.version;
1707117076
if (
17072-
"19.2.0-native-fb-ac068292-20250508" !==
17073-
isomorphicReactPackageVersion$jscomp$inline_2013
17077+
"19.2.0-native-fb-9b79292a-20250508" !==
17078+
isomorphicReactPackageVersion$jscomp$inline_2015
1707417079
)
1707517080
throw Error(
1707617081
formatProdErrorMessage(
1707717082
527,
17078-
isomorphicReactPackageVersion$jscomp$inline_2013,
17079-
"19.2.0-native-fb-ac068292-20250508"
17083+
isomorphicReactPackageVersion$jscomp$inline_2015,
17084+
"19.2.0-native-fb-9b79292a-20250508"
1708017085
)
1708117086
);
1708217087
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17096,24 +17101,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1709617101
null === componentOrElement ? null : componentOrElement.stateNode;
1709717102
return componentOrElement;
1709817103
};
17099-
var internals$jscomp$inline_2532 = {
17104+
var internals$jscomp$inline_2534 = {
1710017105
bundleType: 0,
17101-
version: "19.2.0-native-fb-ac068292-20250508",
17106+
version: "19.2.0-native-fb-9b79292a-20250508",
1710217107
rendererPackageName: "react-dom",
1710317108
currentDispatcherRef: ReactSharedInternals,
17104-
reconcilerVersion: "19.2.0-native-fb-ac068292-20250508"
17109+
reconcilerVersion: "19.2.0-native-fb-9b79292a-20250508"
1710517110
};
1710617111
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
17107-
var hook$jscomp$inline_2533 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
17112+
var hook$jscomp$inline_2535 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
1710817113
if (
17109-
!hook$jscomp$inline_2533.isDisabled &&
17110-
hook$jscomp$inline_2533.supportsFiber
17114+
!hook$jscomp$inline_2535.isDisabled &&
17115+
hook$jscomp$inline_2535.supportsFiber
1711117116
)
1711217117
try {
17113-
(rendererID = hook$jscomp$inline_2533.inject(
17114-
internals$jscomp$inline_2532
17118+
(rendererID = hook$jscomp$inline_2535.inject(
17119+
internals$jscomp$inline_2534
1711517120
)),
17116-
(injectedHook = hook$jscomp$inline_2533);
17121+
(injectedHook = hook$jscomp$inline_2535);
1711717122
} catch (err) {}
1711817123
}
1711917124
exports.createRoot = function (container, options) {
@@ -17122,8 +17127,7 @@ exports.createRoot = function (container, options) {
1712217127
identifierPrefix = "",
1712317128
onUncaughtError = defaultOnUncaughtError,
1712417129
onCaughtError = defaultOnCaughtError,
17125-
onRecoverableError = defaultOnRecoverableError,
17126-
transitionCallbacks = null;
17130+
onRecoverableError = defaultOnRecoverableError;
1712717131
null !== options &&
1712817132
void 0 !== options &&
1712917133
(!0 === options.unstable_strictMode && (isStrictMode = !0),
@@ -17133,9 +17137,7 @@ exports.createRoot = function (container, options) {
1713317137
(onUncaughtError = options.onUncaughtError),
1713417138
void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError),
1713517139
void 0 !== options.onRecoverableError &&
17136-
(onRecoverableError = options.onRecoverableError),
17137-
void 0 !== options.unstable_transitionCallbacks &&
17138-
(transitionCallbacks = options.unstable_transitionCallbacks));
17140+
(onRecoverableError = options.onRecoverableError));
1713917141
options = createFiberRoot(
1714017142
container,
1714117143
1,
@@ -17144,11 +17146,11 @@ exports.createRoot = function (container, options) {
1714417146
null,
1714517147
isStrictMode,
1714617148
identifierPrefix,
17149+
null,
1714717150
onUncaughtError,
1714817151
onCaughtError,
1714917152
onRecoverableError,
17150-
transitionCallbacks,
17151-
null
17153+
defaultOnDefaultTransitionIndicator
1715217154
);
1715317155
container[internalContainerInstanceKey] = options.current;
1715417156
listenToAllSupportedEvents(container);
@@ -17161,7 +17163,6 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1716117163
onUncaughtError = defaultOnUncaughtError,
1716217164
onCaughtError = defaultOnCaughtError,
1716317165
onRecoverableError = defaultOnRecoverableError,
17164-
transitionCallbacks = null,
1716517166
formState = null;
1716617167
null !== options &&
1716717168
void 0 !== options &&
@@ -17173,8 +17174,6 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1717317174
void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError),
1717417175
void 0 !== options.onRecoverableError &&
1717517176
(onRecoverableError = options.onRecoverableError),
17176-
void 0 !== options.unstable_transitionCallbacks &&
17177-
(transitionCallbacks = options.unstable_transitionCallbacks),
1717817177
void 0 !== options.formState && (formState = options.formState));
1717917178
initialChildren = createFiberRoot(
1718017179
container,
@@ -17184,11 +17183,11 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1718417183
null != options ? options : null,
1718517184
isStrictMode,
1718617185
identifierPrefix,
17186+
formState,
1718717187
onUncaughtError,
1718817188
onCaughtError,
1718917189
onRecoverableError,
17190-
transitionCallbacks,
17191-
formState
17190+
defaultOnDefaultTransitionIndicator
1719217191
);
1719317192
initialChildren.context = getContextForSubtree(null);
1719417193
options = initialChildren.current;
@@ -17205,4 +17204,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1720517204
listenToAllSupportedEvents(container);
1720617205
return new ReactDOMHydrationRoot(initialChildren);
1720717206
};
17208-
exports.version = "19.2.0-native-fb-ac068292-20250508";
17207+
exports.version = "19.2.0-native-fb-9b79292a-20250508";

0 commit comments

Comments
 (0)