Skip to content

Commit

Permalink
Log Fragment name when trying to render a lazy fragment (#30372)
Browse files Browse the repository at this point in the history
DiffTrain build for commit 9cc0f6e.
  • Loading branch information
eps1lon committed Jul 23, 2024
1 parent 3e6614e commit 8f1a56e
Show file tree
Hide file tree
Showing 14 changed files with 118 additions and 109 deletions.
2 changes: 1 addition & 1 deletion compiled-rn/VERSION_NATIVE_FB
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19.0.0-native-fb-b7e7f1a3-20240722
19.0.0-native-fb-9cc0f6e6-20240723
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<9c5656083e486ccc33573a16c480eb74>>
* @generated SignedSource<<3002a07e6ab5c0395ecf086a449ee572>>
*/

"use strict";
__DEV__ &&
(function () {
function JSCompiler_object_inline_createNodeMock_1089() {
function JSCompiler_object_inline_createNodeMock_1090() {
return null;
}
function findHook(fiber, id) {
Expand Down Expand Up @@ -7332,9 +7332,10 @@ __DEV__ &&
current.$$typeof === REACT_LAZY_TYPE &&
(workInProgress =
" Did you wrap a component in React.lazy() more than once?");
renderLanes = getComponentNameFromType(current) || current;
throw Error(
"Element type is invalid. Received a promise that resolves to: " +
current +
renderLanes +
". Lazy element type must resolve to a class or function." +
workInProgress
);
Expand Down Expand Up @@ -15082,20 +15083,20 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-native-fb-b7e7f1a3-20240722"
reconcilerVersion: "19.0.0-native-fb-9cc0f6e6-20240723"
});
})({
findFiberByHostInstance: function () {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 1,
version: "19.0.0-native-fb-b7e7f1a3-20240722",
version: "19.0.0-native-fb-9cc0f6e6-20240723",
rendererPackageName: "react-test-renderer"
});
exports._Scheduler = Scheduler;
exports.act = act;
exports.create = function (element, options) {
var createNodeMock = JSCompiler_object_inline_createNodeMock_1089,
var createNodeMock = JSCompiler_object_inline_createNodeMock_1090,
isConcurrent = !1,
isStrictMode = !1,
concurrentUpdatesByDefault = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<29b5cf00b5d1dc9f0b1107e3d8d364a2>>
* @generated SignedSource<<a1cc33719b89e13e2e98a54acde452ba>>
*/

"use strict";
Expand Down Expand Up @@ -5132,9 +5132,10 @@ function beginWork(current, workInProgress, renderLanes) {
);
break a;
}
workInProgress = getComponentNameFromType(elementType) || elementType;
throw Error(
"Element type is invalid. Received a promise that resolves to: " +
elementType +
workInProgress +
". Lazy element type must resolve to a class or function."
);
}
Expand Down Expand Up @@ -9334,19 +9335,19 @@ function wrapFiber(fiber) {
fiberToWrapper.set(fiber, wrapper));
return wrapper;
}
var devToolsConfig$jscomp$inline_1034 = {
var devToolsConfig$jscomp$inline_1035 = {
findFiberByHostInstance: function () {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "19.0.0-native-fb-b7e7f1a3-20240722",
version: "19.0.0-native-fb-9cc0f6e6-20240723",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1223 = {
bundleType: devToolsConfig$jscomp$inline_1034.bundleType,
version: devToolsConfig$jscomp$inline_1034.version,
rendererPackageName: devToolsConfig$jscomp$inline_1034.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1034.rendererConfig,
var internals$jscomp$inline_1224 = {
bundleType: devToolsConfig$jscomp$inline_1035.bundleType,
version: devToolsConfig$jscomp$inline_1035.version,
rendererPackageName: devToolsConfig$jscomp$inline_1035.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1035.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
Expand All @@ -9363,26 +9364,26 @@ var internals$jscomp$inline_1223 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1034.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1035.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-b7e7f1a3-20240722"
reconcilerVersion: "19.0.0-native-fb-9cc0f6e6-20240723"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1224 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1225 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1224.isDisabled &&
hook$jscomp$inline_1224.supportsFiber
!hook$jscomp$inline_1225.isDisabled &&
hook$jscomp$inline_1225.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1224.inject(
internals$jscomp$inline_1223
(rendererID = hook$jscomp$inline_1225.inject(
internals$jscomp$inline_1224
)),
(injectedHook = hook$jscomp$inline_1224);
(injectedHook = hook$jscomp$inline_1225);
} catch (err) {}
}
exports._Scheduler = Scheduler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2806d5853116c243053a4a3f0cc3ca1b>>
* @generated SignedSource<<27e602ad4018b00bea57649abf8bdc10>>
*/

"use strict";
Expand Down Expand Up @@ -5321,9 +5321,10 @@ function beginWork(current, workInProgress, renderLanes) {
);
break a;
}
workInProgress = getComponentNameFromType(elementType) || elementType;
throw Error(
"Element type is invalid. Received a promise that resolves to: " +
elementType +
workInProgress +
". Lazy element type must resolve to a class or function."
);
}
Expand Down Expand Up @@ -9954,12 +9955,12 @@ function wrapFiber(fiber) {
fiberToWrapper.set(fiber, wrapper));
return wrapper;
}
var devToolsConfig$jscomp$inline_1117 = {
var devToolsConfig$jscomp$inline_1118 = {
findFiberByHostInstance: function () {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "19.0.0-native-fb-b7e7f1a3-20240722",
version: "19.0.0-native-fb-9cc0f6e6-20240723",
rendererPackageName: "react-test-renderer"
};
(function (internals) {
Expand All @@ -9976,10 +9977,10 @@ var devToolsConfig$jscomp$inline_1117 = {
} catch (err) {}
return hook.checkDCE ? !0 : !1;
})({
bundleType: devToolsConfig$jscomp$inline_1117.bundleType,
version: devToolsConfig$jscomp$inline_1117.version,
rendererPackageName: devToolsConfig$jscomp$inline_1117.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1117.rendererConfig,
bundleType: devToolsConfig$jscomp$inline_1118.bundleType,
version: devToolsConfig$jscomp$inline_1118.version,
rendererPackageName: devToolsConfig$jscomp$inline_1118.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1118.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
Expand All @@ -9996,14 +9997,14 @@ var devToolsConfig$jscomp$inline_1117 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1117.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1118.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-b7e7f1a3-20240722"
reconcilerVersion: "19.0.0-native-fb-9cc0f6e6-20240723"
});
exports._Scheduler = Scheduler;
exports.act = act;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<30be7a182490ce66443590abf00f7a21>>
* @generated SignedSource<<bababc97c1edd129f4e6139683f91055>>
*/

"use strict";
Expand Down Expand Up @@ -1701,7 +1701,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-native-fb-b7e7f1a3-20240722";
exports.version = "19.0.0-native-fb-9cc0f6e6-20240723";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<13c334ef418ec56b22075edd08c0e970>>
* @generated SignedSource<<8adfde455d69e951219920e8bf136a24>>
*/

"use strict";
Expand Down Expand Up @@ -576,4 +576,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-native-fb-b7e7f1a3-20240722";
exports.version = "19.0.0-native-fb-9cc0f6e6-20240723";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<98aeeddba8dacaa7a901a9e72ceaeb46>>
* @generated SignedSource<<38347293dfb6f4a43e4f4b78c6acb60e>>
*/

"use strict";
Expand Down Expand Up @@ -580,7 +580,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-native-fb-b7e7f1a3-20240722";
exports.version = "19.0.0-native-fb-9cc0f6e6-20240723";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b7e7f1a3fab87e8fc19e86a8088a9e0fe4710973
9cc0f6e68de2b83b11d1fb2b514d2f508c2da6f7
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<80e274d76efc21755c14cd33de6b413f>>
* @generated SignedSource<<a4b4fca074ab48818063825ebddc0757>>
*/

"use strict";
Expand Down Expand Up @@ -8328,9 +8328,10 @@ __DEV__ &&
current.$$typeof === REACT_LAZY_TYPE &&
(workInProgress =
" Did you wrap a component in React.lazy() more than once?");
renderLanes = getComponentNameFromType(current) || current;
throw Error(
"Element type is invalid. Received a promise that resolves to: " +
current +
renderLanes +
". Lazy element type must resolve to a class or function." +
workInProgress
);
Expand Down Expand Up @@ -16685,12 +16686,12 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-native-fb-b7e7f1a3-20240722"
reconcilerVersion: "19.0.0-native-fb-9cc0f6e6-20240723"
});
})({
findFiberByHostInstance: getInstanceFromNode,
bundleType: 1,
version: "19.0.0-native-fb-b7e7f1a3-20240722",
version: "19.0.0-native-fb-9cc0f6e6-20240723",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<65bc90a1d4a8612a00e4f47b432f77cf>>
* @generated SignedSource<<edbdf7422153b5c05f3ba7be58d3edae>>
*/

"use strict";
Expand Down Expand Up @@ -6508,9 +6508,10 @@ function beginWork(current, workInProgress, renderLanes) {
);
break a;
}
workInProgress = getComponentNameFromType(elementType) || elementType;
throw Error(
"Element type is invalid. Received a promise that resolves to: " +
elementType +
workInProgress +
". Lazy element type must resolve to a class or function."
);
}
Expand Down Expand Up @@ -10543,10 +10544,10 @@ batchedUpdatesImpl = function (fn, a) {
}
};
var roots = new Map(),
devToolsConfig$jscomp$inline_1136 = {
devToolsConfig$jscomp$inline_1137 = {
findFiberByHostInstance: getInstanceFromNode,
bundleType: 0,
version: "19.0.0-native-fb-b7e7f1a3-20240722",
version: "19.0.0-native-fb-9cc0f6e6-20240723",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
Expand All @@ -10562,11 +10563,11 @@ var roots = new Map(),
}.bind(null, findNodeHandle)
}
};
var internals$jscomp$inline_1362 = {
bundleType: devToolsConfig$jscomp$inline_1136.bundleType,
version: devToolsConfig$jscomp$inline_1136.version,
rendererPackageName: devToolsConfig$jscomp$inline_1136.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1136.rendererConfig,
var internals$jscomp$inline_1363 = {
bundleType: devToolsConfig$jscomp$inline_1137.bundleType,
version: devToolsConfig$jscomp$inline_1137.version,
rendererPackageName: devToolsConfig$jscomp$inline_1137.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1137.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
Expand All @@ -10582,26 +10583,26 @@ var internals$jscomp$inline_1362 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1136.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1137.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-b7e7f1a3-20240722"
reconcilerVersion: "19.0.0-native-fb-9cc0f6e6-20240723"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1363 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1364 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1363.isDisabled &&
hook$jscomp$inline_1363.supportsFiber
!hook$jscomp$inline_1364.isDisabled &&
hook$jscomp$inline_1364.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1363.inject(
internals$jscomp$inline_1362
(rendererID = hook$jscomp$inline_1364.inject(
internals$jscomp$inline_1363
)),
(injectedHook = hook$jscomp$inline_1363);
(injectedHook = hook$jscomp$inline_1364);
} catch (err) {}
}
exports.createPortal = function (children, containerTag) {
Expand Down
Loading

0 comments on commit 8f1a56e

Please sign in to comment.