Skip to content

Commit 9fc6c4c

Browse files
committed
[Devtools] Ensure initial read of useFormStatus returns NotPendingTransition (#28728)
DiffTrain build for commit 88ee14f.
1 parent b85f79c commit 9fc6c4c

14 files changed

+134
-143
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.0.0-native-fb-3f8b1333-20240730
1+
19.0.0-native-fb-88ee14ff-20240801

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js

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

1313
"use strict";
@@ -4743,8 +4743,7 @@ __DEV__ &&
47434743
];
47444744
}
47454745
function useHostTransitionStatus() {
4746-
var status = readContext(HostTransitionContext);
4747-
return null !== status ? status : null;
4746+
return readContext(HostTransitionContext);
47484747
}
47494748
function mountId() {
47504749
var hook = mountWorkInProgressHook(),
@@ -12972,6 +12971,14 @@ __DEV__ &&
1297212971
appendChildToContainer = appendChild,
1297312972
insertInContainerBefore = insertBefore,
1297412973
removeChildFromContainer = removeChild,
12974+
HostTransitionContext = {
12975+
$$typeof: REACT_CONTEXT_TYPE,
12976+
Provider: null,
12977+
Consumer: null,
12978+
_currentValue: null,
12979+
_currentValue2: null,
12980+
_threadCount: 0
12981+
},
1297512982
bind = Function.prototype.bind,
1297612983
valueStack = [];
1297712984
var fiberStack = [];
@@ -12988,14 +12995,6 @@ __DEV__ &&
1298812995
contextFiberStackCursor = createCursor(null),
1298912996
rootInstanceStackCursor = createCursor(null),
1299012997
hostTransitionProviderCursor = createCursor(null),
12991-
HostTransitionContext = {
12992-
$$typeof: REACT_CONTEXT_TYPE,
12993-
Provider: null,
12994-
Consumer: null,
12995-
_currentValue: null,
12996-
_currentValue2: null,
12997-
_threadCount: 0
12998-
},
1299912998
needsEscaping = /["'&<>\n\t]|^\s|\s$/,
1300012999
hydrationDiffRootDEV = null,
1300113000
hydrationErrors = null,
@@ -14926,11 +14925,11 @@ __DEV__ &&
1492614925
(function () {
1492714926
var internals = {
1492814927
bundleType: 1,
14929-
version: "19.0.0-native-fb-3f8b1333-20240730",
14928+
version: "19.0.0-native-fb-88ee14ff-20240801",
1493014929
rendererPackageName: "react-test-renderer",
1493114930
currentDispatcherRef: ReactSharedInternals,
1493214931
findFiberByHostInstance: getInstanceFromNode,
14933-
reconcilerVersion: "19.0.0-native-fb-3f8b1333-20240730"
14932+
reconcilerVersion: "19.0.0-native-fb-88ee14ff-20240801"
1493414933
};
1493514934
internals.overrideHookState = overrideHookState;
1493614935
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15075,5 +15074,5 @@ __DEV__ &&
1507515074
flushSyncWorkAcrossRoots_impl(!0));
1507615075
}
1507715076
};
15078-
exports.version = "19.0.0-native-fb-3f8b1333-20240730";
15077+
exports.version = "19.0.0-native-fb-88ee14ff-20240801";
1507915078
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<f2316128be60fa267876871507711ea8>>
10+
* @generated SignedSource<<cc9754db5bad09d4d691779880f01ebd>>
1111
*/
1212

1313
"use strict";
@@ -727,6 +727,14 @@ function insertBefore(parentInstance, child, beforeChild) {
727727
var currentUpdatePriority = 0,
728728
scheduleTimeout = setTimeout,
729729
cancelTimeout = clearTimeout,
730+
HostTransitionContext = {
731+
$$typeof: REACT_CONTEXT_TYPE,
732+
Provider: null,
733+
Consumer: null,
734+
_currentValue: null,
735+
_currentValue2: null,
736+
_threadCount: 0
737+
},
730738
valueStack = [],
731739
index = -1;
732740
function createCursor(defaultValue) {
@@ -841,15 +849,7 @@ function createCapturedValueAtFiber(value, source) {
841849
var contextStackCursor = createCursor(null),
842850
contextFiberStackCursor = createCursor(null),
843851
rootInstanceStackCursor = createCursor(null),
844-
hostTransitionProviderCursor = createCursor(null),
845-
HostTransitionContext = {
846-
$$typeof: REACT_CONTEXT_TYPE,
847-
Provider: null,
848-
Consumer: null,
849-
_currentValue: null,
850-
_currentValue2: null,
851-
_threadCount: 0
852-
};
852+
hostTransitionProviderCursor = createCursor(null);
853853
function pushHostContainer(fiber, nextRootInstance) {
854854
push(rootInstanceStackCursor, nextRootInstance);
855855
push(contextFiberStackCursor, fiber);
@@ -3118,8 +3118,7 @@ function startTransition(fiber, queue, pendingState, finishedState, callback) {
31183118
}
31193119
}
31203120
function useHostTransitionStatus() {
3121-
var status = readContext(HostTransitionContext);
3122-
return null !== status ? status : null;
3121+
return readContext(HostTransitionContext);
31233122
}
31243123
function updateId() {
31253124
return updateWorkInProgressHook().memoizedState;
@@ -9312,14 +9311,14 @@ function wrapFiber(fiber) {
93129311
}
93139312
var internals$jscomp$inline_1206 = {
93149313
bundleType: 0,
9315-
version: "19.0.0-native-fb-3f8b1333-20240730",
9314+
version: "19.0.0-native-fb-88ee14ff-20240801",
93169315
rendererPackageName: "react-test-renderer",
93179316
currentDispatcherRef: ReactSharedInternals,
93189317
findFiberByHostInstance: function (mockNode) {
93199318
mockNode = nodeToInstanceMap.get(mockNode);
93209319
return void 0 !== mockNode ? mockNode.internalInstanceHandle : null;
93219320
},
9322-
reconcilerVersion: "19.0.0-native-fb-3f8b1333-20240730"
9321+
reconcilerVersion: "19.0.0-native-fb-88ee14ff-20240801"
93239322
};
93249323
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
93259324
var hook$jscomp$inline_1207 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9455,4 +9454,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
94559454
flushSyncWorkAcrossRoots_impl(!0));
94569455
}
94579456
};
9458-
exports.version = "19.0.0-native-fb-3f8b1333-20240730";
9457+
exports.version = "19.0.0-native-fb-88ee14ff-20240801";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<d0e63ac460cfc8cd378c65d4d722c007>>
10+
* @generated SignedSource<<ce909fecc578f22876a2f4bdb176423e>>
1111
*/
1212

1313
"use strict";
@@ -804,6 +804,14 @@ function insertBefore(parentInstance, child, beforeChild) {
804804
var currentUpdatePriority = 0,
805805
scheduleTimeout = setTimeout,
806806
cancelTimeout = clearTimeout,
807+
HostTransitionContext = {
808+
$$typeof: REACT_CONTEXT_TYPE,
809+
Provider: null,
810+
Consumer: null,
811+
_currentValue: null,
812+
_currentValue2: null,
813+
_threadCount: 0
814+
},
807815
valueStack = [],
808816
index = -1;
809817
function createCursor(defaultValue) {
@@ -918,15 +926,7 @@ function createCapturedValueAtFiber(value, source) {
918926
var contextStackCursor = createCursor(null),
919927
contextFiberStackCursor = createCursor(null),
920928
rootInstanceStackCursor = createCursor(null),
921-
hostTransitionProviderCursor = createCursor(null),
922-
HostTransitionContext = {
923-
$$typeof: REACT_CONTEXT_TYPE,
924-
Provider: null,
925-
Consumer: null,
926-
_currentValue: null,
927-
_currentValue2: null,
928-
_threadCount: 0
929-
};
929+
hostTransitionProviderCursor = createCursor(null);
930930
function pushHostContainer(fiber, nextRootInstance) {
931931
push(rootInstanceStackCursor, nextRootInstance);
932932
push(contextFiberStackCursor, fiber);
@@ -3195,8 +3195,7 @@ function startTransition(fiber, queue, pendingState, finishedState, callback) {
31953195
}
31963196
}
31973197
function useHostTransitionStatus() {
3198-
var status = readContext(HostTransitionContext);
3199-
return null !== status ? status : null;
3198+
return readContext(HostTransitionContext);
32003199
}
32013200
function updateId() {
32023201
return updateWorkInProgressHook().memoizedState;
@@ -9925,14 +9924,14 @@ function wrapFiber(fiber) {
99259924
}
99269925
var internals$jscomp$inline_1115 = {
99279926
bundleType: 0,
9928-
version: "19.0.0-native-fb-3f8b1333-20240730",
9927+
version: "19.0.0-native-fb-88ee14ff-20240801",
99299928
rendererPackageName: "react-test-renderer",
99309929
currentDispatcherRef: ReactSharedInternals,
99319930
findFiberByHostInstance: function (mockNode) {
99329931
mockNode = nodeToInstanceMap.get(mockNode);
99339932
return void 0 !== mockNode ? mockNode.internalInstanceHandle : null;
99349933
},
9935-
reconcilerVersion: "19.0.0-native-fb-3f8b1333-20240730",
9934+
reconcilerVersion: "19.0.0-native-fb-88ee14ff-20240801",
99369935
getLaneLabelMap: function () {
99379936
for (
99389937
var map = new Map(), lane = 1, index$148 = 0;
@@ -10083,4 +10082,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
1008310082
flushSyncWorkAcrossRoots_impl(!0));
1008410083
}
1008510084
};
10086-
exports.version = "19.0.0-native-fb-3f8b1333-20240730";
10085+
exports.version = "19.0.0-native-fb-88ee14ff-20240801";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-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<<7c38a63e9c2ae28b3a43383fc597ef11>>
10+
* @generated SignedSource<<fb25d485c5ce3480c1ee5c0f7551078c>>
1111
*/
1212

1313
"use strict";
@@ -1705,7 +1705,7 @@ __DEV__ &&
17051705
exports.useTransition = function () {
17061706
return resolveDispatcher().useTransition();
17071707
};
1708-
exports.version = "19.0.0-native-fb-3f8b1333-20240730";
1708+
exports.version = "19.0.0-native-fb-88ee14ff-20240801";
17091709
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
17101710
"function" ===
17111711
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-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<<dbda007d0711ea4207143cb06db2ec36>>
10+
* @generated SignedSource<<a037f7a6b82389336bce72650d2eb6f6>>
1111
*/
1212

1313
"use strict";
@@ -580,4 +580,4 @@ exports.useSyncExternalStore = function (
580580
exports.useTransition = function () {
581581
return ReactSharedInternals.H.useTransition();
582582
};
583-
exports.version = "19.0.0-native-fb-3f8b1333-20240730";
583+
exports.version = "19.0.0-native-fb-88ee14ff-20240801";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-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<<7f8071db6f3932d37863998f6aaf4c46>>
10+
* @generated SignedSource<<0f0cbc9173efdb745ae590da7cb72542>>
1111
*/
1212

1313
"use strict";
@@ -584,7 +584,7 @@ exports.useSyncExternalStore = function (
584584
exports.useTransition = function () {
585585
return ReactSharedInternals.H.useTransition();
586586
};
587-
exports.version = "19.0.0-native-fb-3f8b1333-20240730";
587+
exports.version = "19.0.0-native-fb-88ee14ff-20240801";
588588
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
589589
"function" ===
590590
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3f8b1333daade70117e5915304cca19f14e87b53
1+
88ee14ffa57beb0689f26f0c52c357e3ac446af8

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<27b848f3cc19ce43a5a81d26e5ee96fe>>
10+
* @generated SignedSource<<ccf803f43b9e96e1c53c80fe55e3f4c7>>
1111
*/
1212

1313
"use strict";
@@ -2097,7 +2097,7 @@ __DEV__ &&
20972097
(pop(contextStackCursor, fiber), pop(contextFiberStackCursor, fiber));
20982098
hostTransitionProviderCursor.current === fiber &&
20992099
(pop(hostTransitionProviderCursor, fiber),
2100-
(HostTransitionContext._currentValue2 = null));
2100+
(HostTransitionContext._currentValue2 = NotPendingTransition));
21012101
}
21022102
function findNotableNode(node, indent) {
21032103
return void 0 === node.serverProps &&
@@ -5645,8 +5645,7 @@ __DEV__ &&
56455645
];
56465646
}
56475647
function useHostTransitionStatus() {
5648-
var status = readContext(HostTransitionContext);
5649-
return null !== status ? status : NotPendingTransition;
5648+
return readContext(HostTransitionContext);
56505649
}
56515650
function mountId() {
56525651
var hook = mountWorkInProgressHook(),
@@ -14893,14 +14892,6 @@ __DEV__ &&
1489314892
contextFiberStackCursor = createCursor(null),
1489414893
rootInstanceStackCursor = createCursor(null),
1489514894
hostTransitionProviderCursor = createCursor(null),
14896-
HostTransitionContext = {
14897-
$$typeof: REACT_CONTEXT_TYPE,
14898-
Provider: null,
14899-
Consumer: null,
14900-
_currentValue: null,
14901-
_currentValue2: null,
14902-
_threadCount: 0
14903-
},
1490414895
needsEscaping = /["'&<>\n\t]|^\s|\s$/,
1490514896
hydrationDiffRootDEV = null,
1490614897
hydrationErrors = null,
@@ -16831,6 +16822,14 @@ __DEV__ &&
1683116822
cancelTimeout = clearTimeout,
1683216823
noTimeout = -1,
1683316824
NotPendingTransition = null,
16825+
HostTransitionContext = {
16826+
$$typeof: REACT_CONTEXT_TYPE,
16827+
Provider: null,
16828+
Consumer: null,
16829+
_currentValue: NotPendingTransition,
16830+
_currentValue2: NotPendingTransition,
16831+
_threadCount: 0
16832+
},
1683416833
supportsMicrotasks =
1683516834
"undefined" !== typeof RN$enableMicrotasksInReact &&
1683616835
!!RN$enableMicrotasksInReact,
@@ -16902,11 +16901,11 @@ __DEV__ &&
1690216901
(function () {
1690316902
var internals = {
1690416903
bundleType: 1,
16905-
version: "19.0.0-native-fb-3f8b1333-20240730",
16904+
version: "19.0.0-native-fb-88ee14ff-20240801",
1690616905
rendererPackageName: "react-native-renderer",
1690716906
currentDispatcherRef: ReactSharedInternals,
1690816907
findFiberByHostInstance: getInstanceFromNode,
16909-
reconcilerVersion: "19.0.0-native-fb-3f8b1333-20240730"
16908+
reconcilerVersion: "19.0.0-native-fb-88ee14ff-20240801"
1691016909
};
1691116910
null !== extraDevToolsConfig &&
1691216911
(internals.rendererConfig = extraDevToolsConfig);

0 commit comments

Comments
 (0)