mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Finish cleaning up digest from onRecoverableError (#28686)
Don't need to track it separately on the captured value anymore. Shouldn't be in the types. I used a getter for the warning instead because Proxies are kind of heavy weight options for this kind of warning. We typically use getters. DiffTrain build for commit https://github.com/facebook/react/commit/df95577db0d1d7ca383f281bc1d9e6ba5579bef2.
This commit is contained in:
+24
-36
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<4c8833d67d5c40def402e9b24fc93313>>
|
||||
* @generated SignedSource<<450ce571f0c96cb1643d074e993d3573>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -13195,11 +13195,10 @@ if (__DEV__) {
|
||||
return {
|
||||
value: value,
|
||||
source: source,
|
||||
stack: stack,
|
||||
digest: null
|
||||
stack: stack
|
||||
};
|
||||
}
|
||||
function createCapturedValueFromError(value, digest, stack) {
|
||||
function createCapturedValueFromError(value, stack) {
|
||||
if (typeof stack === "string") {
|
||||
CapturedStacks.set(value, stack);
|
||||
}
|
||||
@@ -13207,8 +13206,7 @@ if (__DEV__) {
|
||||
return {
|
||||
value: value,
|
||||
source: null,
|
||||
stack: stack != null ? stack : null,
|
||||
digest: digest != null ? digest : null
|
||||
stack: stack
|
||||
};
|
||||
}
|
||||
|
||||
@@ -15825,7 +15823,9 @@ if (__DEV__) {
|
||||
// get an update and we'll never be able to hydrate the final content. Let's just try the
|
||||
// client side render instead.
|
||||
var digest;
|
||||
var message, stack, componentStack;
|
||||
var message;
|
||||
var stack = null;
|
||||
var componentStack = null;
|
||||
|
||||
{
|
||||
var _getSuspenseInstanceF =
|
||||
@@ -15857,8 +15857,7 @@ if (__DEV__) {
|
||||
error.digest = digest;
|
||||
capturedValue = createCapturedValueFromError(
|
||||
error,
|
||||
digest,
|
||||
componentStack
|
||||
componentStack === undefined ? null : componentStack
|
||||
);
|
||||
}
|
||||
|
||||
@@ -15973,7 +15972,8 @@ if (__DEV__) {
|
||||
new Error(
|
||||
"There was an error while hydrating this Suspense boundary. " +
|
||||
"Switched to client rendering."
|
||||
)
|
||||
),
|
||||
null
|
||||
);
|
||||
|
||||
return retrySuspenseComponentWithoutHydrating(
|
||||
@@ -24886,35 +24886,23 @@ if (__DEV__) {
|
||||
}
|
||||
|
||||
function makeErrorInfo(componentStack) {
|
||||
var errorInfo = {
|
||||
componentStack: componentStack
|
||||
};
|
||||
|
||||
{
|
||||
var errorInfo = {
|
||||
componentStack: componentStack
|
||||
};
|
||||
return new Proxy(errorInfo, {
|
||||
get: function (target, prop, receiver) {
|
||||
if (prop === "digest") {
|
||||
error(
|
||||
'You are accessing "digest" from the errorInfo object passed to onRecoverableError.' +
|
||||
" This property is no longer provided as part of errorInfo but can be accessed as a property" +
|
||||
" of the Error instance itself."
|
||||
);
|
||||
}
|
||||
|
||||
return Reflect.get(target, prop, receiver);
|
||||
},
|
||||
has: function (target, prop) {
|
||||
if (prop === "digest") {
|
||||
error(
|
||||
'You are accessing "digest" from the errorInfo object passed to onRecoverableError.' +
|
||||
" This property is no longer provided as part of errorInfo but can be accessed as a property" +
|
||||
" of the Error instance itself."
|
||||
);
|
||||
}
|
||||
|
||||
return Reflect.has(target, prop);
|
||||
Object.defineProperty(errorInfo, "digest", {
|
||||
get: function () {
|
||||
error(
|
||||
'You are accessing "digest" from the errorInfo object passed to onRecoverableError.' +
|
||||
" This property is no longer provided as part of errorInfo but can be accessed as a property" +
|
||||
" of the Error instance itself."
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return errorInfo;
|
||||
}
|
||||
|
||||
function releaseRootPooledCache(root, remainingLanes) {
|
||||
@@ -26838,7 +26826,7 @@ if (__DEV__) {
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "19.0.0-canary-90c44db1";
|
||||
var ReactVersion = "19.0.0-canary-a7826ac0";
|
||||
|
||||
// Might add PROFILE later.
|
||||
|
||||
|
||||
+25
-32
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<7ea0ba771a3dafe13783264b14f1cffd>>
|
||||
* @generated SignedSource<<b862b395b4f51e602cf4cf820214c31d>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -3536,16 +3536,11 @@ function createCapturedValueAtFiber(value, source) {
|
||||
((stack = getStackByFiberInDevAndProd(source)),
|
||||
CapturedStacks.set(value, stack));
|
||||
} else stack = getStackByFiberInDevAndProd(source);
|
||||
return { value: value, source: source, stack: stack, digest: null };
|
||||
return { value: value, source: source, stack: stack };
|
||||
}
|
||||
function createCapturedValueFromError(value, digest, stack) {
|
||||
function createCapturedValueFromError(value, stack) {
|
||||
"string" === typeof stack && CapturedStacks.set(value, stack);
|
||||
return {
|
||||
value: value,
|
||||
source: null,
|
||||
stack: null != stack ? stack : null,
|
||||
digest: null != digest ? digest : null
|
||||
};
|
||||
return { value: value, source: null, stack: stack };
|
||||
}
|
||||
var reportGlobalError =
|
||||
"function" === typeof reportError
|
||||
@@ -4408,7 +4403,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
(JSCompiler_temp = createCapturedValueFromError(
|
||||
Error(
|
||||
"There was an error while hydrating this Suspense boundary. Switched to client rendering."
|
||||
)
|
||||
),
|
||||
null
|
||||
)),
|
||||
(workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
@@ -4464,11 +4460,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
)),
|
||||
(nextProps.stack = ""),
|
||||
(nextProps.digest = JSCompiler_temp),
|
||||
(JSCompiler_temp = createCapturedValueFromError(
|
||||
nextProps,
|
||||
JSCompiler_temp,
|
||||
void 0
|
||||
)),
|
||||
(JSCompiler_temp = createCapturedValueFromError(nextProps, null)),
|
||||
(workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
workInProgress,
|
||||
@@ -8320,8 +8312,9 @@ function commitRootImpl(
|
||||
finishedWork++
|
||||
)
|
||||
(remainingLanes = recoverableErrors[finishedWork]),
|
||||
(transitions = { componentStack: remainingLanes.stack }),
|
||||
renderPriorityLevel(remainingLanes.value, transitions);
|
||||
renderPriorityLevel(remainingLanes.value, {
|
||||
componentStack: remainingLanes.stack
|
||||
});
|
||||
0 !== (pendingPassiveEffectsLanes & 3) &&
|
||||
0 !== root.tag &&
|
||||
flushPassiveEffects();
|
||||
@@ -9215,19 +9208,19 @@ function wrapFiber(fiber) {
|
||||
fiberToWrapper.set(fiber, wrapper));
|
||||
return wrapper;
|
||||
}
|
||||
var devToolsConfig$jscomp$inline_1002 = {
|
||||
var devToolsConfig$jscomp$inline_999 = {
|
||||
findFiberByHostInstance: function () {
|
||||
throw Error("TestRenderer does not support findFiberByHostInstance()");
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "19.0.0-canary-0ee8586e",
|
||||
version: "19.0.0-canary-120686d7",
|
||||
rendererPackageName: "react-test-renderer"
|
||||
};
|
||||
var internals$jscomp$inline_1190 = {
|
||||
bundleType: devToolsConfig$jscomp$inline_1002.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1002.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1002.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1002.rendererConfig,
|
||||
var internals$jscomp$inline_1187 = {
|
||||
bundleType: devToolsConfig$jscomp$inline_999.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_999.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_999.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_999.rendererConfig,
|
||||
overrideHookState: null,
|
||||
overrideHookStateDeletePath: null,
|
||||
overrideHookStateRenamePath: null,
|
||||
@@ -9244,26 +9237,26 @@ var internals$jscomp$inline_1190 = {
|
||||
return null === fiber ? null : fiber.stateNode;
|
||||
},
|
||||
findFiberByHostInstance:
|
||||
devToolsConfig$jscomp$inline_1002.findFiberByHostInstance ||
|
||||
devToolsConfig$jscomp$inline_999.findFiberByHostInstance ||
|
||||
emptyFindFiberByHostInstance,
|
||||
findHostInstancesForRefresh: null,
|
||||
scheduleRefresh: null,
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "19.0.0-canary-0ee8586e"
|
||||
reconcilerVersion: "19.0.0-canary-120686d7"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1191 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
var hook$jscomp$inline_1188 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (
|
||||
!hook$jscomp$inline_1191.isDisabled &&
|
||||
hook$jscomp$inline_1191.supportsFiber
|
||||
!hook$jscomp$inline_1188.isDisabled &&
|
||||
hook$jscomp$inline_1188.supportsFiber
|
||||
)
|
||||
try {
|
||||
(rendererID = hook$jscomp$inline_1191.inject(
|
||||
internals$jscomp$inline_1190
|
||||
(rendererID = hook$jscomp$inline_1188.inject(
|
||||
internals$jscomp$inline_1187
|
||||
)),
|
||||
(injectedHook = hook$jscomp$inline_1191);
|
||||
(injectedHook = hook$jscomp$inline_1188);
|
||||
} catch (err) {}
|
||||
}
|
||||
exports._Scheduler = Scheduler;
|
||||
|
||||
+18
-25
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<0102d8d01b7c7efdce15387c6fa804bc>>
|
||||
* @generated SignedSource<<1e162bfd81c2744b7c22ac7c96c87f91>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -3694,16 +3694,11 @@ function createCapturedValueAtFiber(value, source) {
|
||||
((stack = getStackByFiberInDevAndProd(source)),
|
||||
CapturedStacks.set(value, stack));
|
||||
} else stack = getStackByFiberInDevAndProd(source);
|
||||
return { value: value, source: source, stack: stack, digest: null };
|
||||
return { value: value, source: source, stack: stack };
|
||||
}
|
||||
function createCapturedValueFromError(value, digest, stack) {
|
||||
function createCapturedValueFromError(value, stack) {
|
||||
"string" === typeof stack && CapturedStacks.set(value, stack);
|
||||
return {
|
||||
value: value,
|
||||
source: null,
|
||||
stack: null != stack ? stack : null,
|
||||
digest: null != digest ? digest : null
|
||||
};
|
||||
return { value: value, source: null, stack: stack };
|
||||
}
|
||||
var reportGlobalError =
|
||||
"function" === typeof reportError
|
||||
@@ -4579,7 +4574,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
(JSCompiler_temp = createCapturedValueFromError(
|
||||
Error(
|
||||
"There was an error while hydrating this Suspense boundary. Switched to client rendering."
|
||||
)
|
||||
),
|
||||
null
|
||||
)),
|
||||
(workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
@@ -4635,11 +4631,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
)),
|
||||
(nextProps.stack = ""),
|
||||
(nextProps.digest = JSCompiler_temp),
|
||||
(JSCompiler_temp = createCapturedValueFromError(
|
||||
nextProps,
|
||||
JSCompiler_temp,
|
||||
void 0
|
||||
)),
|
||||
(JSCompiler_temp = createCapturedValueFromError(nextProps, null)),
|
||||
(workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
workInProgress,
|
||||
@@ -8866,8 +8858,9 @@ function commitRootImpl(
|
||||
finishedWork++
|
||||
)
|
||||
(remainingLanes = recoverableErrors[finishedWork]),
|
||||
(transitions = { componentStack: remainingLanes.stack }),
|
||||
renderPriorityLevel(remainingLanes.value, transitions);
|
||||
renderPriorityLevel(remainingLanes.value, {
|
||||
componentStack: remainingLanes.stack
|
||||
});
|
||||
0 !== (pendingPassiveEffectsLanes & 3) &&
|
||||
0 !== root.tag &&
|
||||
flushPassiveEffects();
|
||||
@@ -9833,12 +9826,12 @@ function wrapFiber(fiber) {
|
||||
fiberToWrapper.set(fiber, wrapper));
|
||||
return wrapper;
|
||||
}
|
||||
var devToolsConfig$jscomp$inline_1086 = {
|
||||
var devToolsConfig$jscomp$inline_1083 = {
|
||||
findFiberByHostInstance: function () {
|
||||
throw Error("TestRenderer does not support findFiberByHostInstance()");
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "19.0.0-canary-8b0c34a5",
|
||||
version: "19.0.0-canary-841877f9",
|
||||
rendererPackageName: "react-test-renderer"
|
||||
};
|
||||
(function (internals) {
|
||||
@@ -9855,10 +9848,10 @@ var devToolsConfig$jscomp$inline_1086 = {
|
||||
} catch (err) {}
|
||||
return hook.checkDCE ? !0 : !1;
|
||||
})({
|
||||
bundleType: devToolsConfig$jscomp$inline_1086.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1086.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1086.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1086.rendererConfig,
|
||||
bundleType: devToolsConfig$jscomp$inline_1083.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1083.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1083.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1083.rendererConfig,
|
||||
overrideHookState: null,
|
||||
overrideHookStateDeletePath: null,
|
||||
overrideHookStateRenamePath: null,
|
||||
@@ -9875,14 +9868,14 @@ var devToolsConfig$jscomp$inline_1086 = {
|
||||
return null === fiber ? null : fiber.stateNode;
|
||||
},
|
||||
findFiberByHostInstance:
|
||||
devToolsConfig$jscomp$inline_1086.findFiberByHostInstance ||
|
||||
devToolsConfig$jscomp$inline_1083.findFiberByHostInstance ||
|
||||
emptyFindFiberByHostInstance,
|
||||
findHostInstancesForRefresh: null,
|
||||
scheduleRefresh: null,
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "19.0.0-canary-8b0c34a5"
|
||||
reconcilerVersion: "19.0.0-canary-841877f9"
|
||||
});
|
||||
exports._Scheduler = Scheduler;
|
||||
exports.act = act;
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
b9149cc6e6442389accf1f7c34a77ba2e6e52b5e
|
||||
df95577db0d1d7ca383f281bc1d9e6ba5579bef2
|
||||
|
||||
+24
-36
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<569c28c9c7718b755c53912a8e17a0bd>>
|
||||
* @generated SignedSource<<6f1a3674eda8e64a39fec845789b844f>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -16838,11 +16838,10 @@ to return true:wantsResponderID| |
|
||||
return {
|
||||
value: value,
|
||||
source: source,
|
||||
stack: stack,
|
||||
digest: null
|
||||
stack: stack
|
||||
};
|
||||
}
|
||||
function createCapturedValueFromError(value, digest, stack) {
|
||||
function createCapturedValueFromError(value, stack) {
|
||||
if (typeof stack === "string") {
|
||||
CapturedStacks.set(value, stack);
|
||||
}
|
||||
@@ -16850,8 +16849,7 @@ to return true:wantsResponderID| |
|
||||
return {
|
||||
value: value,
|
||||
source: null,
|
||||
stack: stack != null ? stack : null,
|
||||
digest: digest != null ? digest : null
|
||||
stack: stack
|
||||
};
|
||||
}
|
||||
|
||||
@@ -19485,7 +19483,9 @@ to return true:wantsResponderID| |
|
||||
// get an update and we'll never be able to hydrate the final content. Let's just try the
|
||||
// client side render instead.
|
||||
var digest;
|
||||
var message, stack, componentStack;
|
||||
var message;
|
||||
var stack = null;
|
||||
var componentStack = null;
|
||||
|
||||
{
|
||||
var _getSuspenseInstanceF =
|
||||
@@ -19517,8 +19517,7 @@ to return true:wantsResponderID| |
|
||||
error.digest = digest;
|
||||
capturedValue = createCapturedValueFromError(
|
||||
error,
|
||||
digest,
|
||||
componentStack
|
||||
componentStack === undefined ? null : componentStack
|
||||
);
|
||||
}
|
||||
|
||||
@@ -19633,7 +19632,8 @@ to return true:wantsResponderID| |
|
||||
new Error(
|
||||
"There was an error while hydrating this Suspense boundary. " +
|
||||
"Switched to client rendering."
|
||||
)
|
||||
),
|
||||
null
|
||||
);
|
||||
|
||||
return retrySuspenseComponentWithoutHydrating(
|
||||
@@ -28504,35 +28504,23 @@ to return true:wantsResponderID| |
|
||||
}
|
||||
|
||||
function makeErrorInfo(componentStack) {
|
||||
var errorInfo = {
|
||||
componentStack: componentStack
|
||||
};
|
||||
|
||||
{
|
||||
var errorInfo = {
|
||||
componentStack: componentStack
|
||||
};
|
||||
return new Proxy(errorInfo, {
|
||||
get: function (target, prop, receiver) {
|
||||
if (prop === "digest") {
|
||||
error(
|
||||
'You are accessing "digest" from the errorInfo object passed to onRecoverableError.' +
|
||||
" This property is no longer provided as part of errorInfo but can be accessed as a property" +
|
||||
" of the Error instance itself."
|
||||
);
|
||||
}
|
||||
|
||||
return Reflect.get(target, prop, receiver);
|
||||
},
|
||||
has: function (target, prop) {
|
||||
if (prop === "digest") {
|
||||
error(
|
||||
'You are accessing "digest" from the errorInfo object passed to onRecoverableError.' +
|
||||
" This property is no longer provided as part of errorInfo but can be accessed as a property" +
|
||||
" of the Error instance itself."
|
||||
);
|
||||
}
|
||||
|
||||
return Reflect.has(target, prop);
|
||||
Object.defineProperty(errorInfo, "digest", {
|
||||
get: function () {
|
||||
error(
|
||||
'You are accessing "digest" from the errorInfo object passed to onRecoverableError.' +
|
||||
" This property is no longer provided as part of errorInfo but can be accessed as a property" +
|
||||
" of the Error instance itself."
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return errorInfo;
|
||||
}
|
||||
|
||||
function releaseRootPooledCache(root, remainingLanes) {
|
||||
@@ -30608,7 +30596,7 @@ to return true:wantsResponderID| |
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "19.0.0-canary-f9a3ca70";
|
||||
var ReactVersion = "19.0.0-canary-a3fc349c";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
|
||||
+42
-49
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<6f0e7861f6743b3815fa3d44454d6dbd>>
|
||||
* @generated SignedSource<<24c748cb5ad6fedf32c95c0a70ca3378>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -893,7 +893,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
||||
"ReactNativeBridgeEventPlugin"
|
||||
]);
|
||||
recomputePluginOrdering();
|
||||
var injectedNamesToPlugins$jscomp$inline_246 = {
|
||||
var injectedNamesToPlugins$jscomp$inline_245 = {
|
||||
ResponderEventPlugin: ResponderEventPlugin,
|
||||
ReactNativeBridgeEventPlugin: {
|
||||
eventTypes: {},
|
||||
@@ -939,32 +939,32 @@ var injectedNamesToPlugins$jscomp$inline_246 = {
|
||||
}
|
||||
}
|
||||
},
|
||||
isOrderingDirty$jscomp$inline_247 = !1,
|
||||
pluginName$jscomp$inline_248;
|
||||
for (pluginName$jscomp$inline_248 in injectedNamesToPlugins$jscomp$inline_246)
|
||||
isOrderingDirty$jscomp$inline_246 = !1,
|
||||
pluginName$jscomp$inline_247;
|
||||
for (pluginName$jscomp$inline_247 in injectedNamesToPlugins$jscomp$inline_245)
|
||||
if (
|
||||
injectedNamesToPlugins$jscomp$inline_246.hasOwnProperty(
|
||||
pluginName$jscomp$inline_248
|
||||
injectedNamesToPlugins$jscomp$inline_245.hasOwnProperty(
|
||||
pluginName$jscomp$inline_247
|
||||
)
|
||||
) {
|
||||
var pluginModule$jscomp$inline_249 =
|
||||
injectedNamesToPlugins$jscomp$inline_246[pluginName$jscomp$inline_248];
|
||||
var pluginModule$jscomp$inline_248 =
|
||||
injectedNamesToPlugins$jscomp$inline_245[pluginName$jscomp$inline_247];
|
||||
if (
|
||||
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_248) ||
|
||||
namesToPlugins[pluginName$jscomp$inline_248] !==
|
||||
pluginModule$jscomp$inline_249
|
||||
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_247) ||
|
||||
namesToPlugins[pluginName$jscomp$inline_247] !==
|
||||
pluginModule$jscomp$inline_248
|
||||
) {
|
||||
if (namesToPlugins[pluginName$jscomp$inline_248])
|
||||
if (namesToPlugins[pluginName$jscomp$inline_247])
|
||||
throw Error(
|
||||
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
||||
(pluginName$jscomp$inline_248 + "`.")
|
||||
(pluginName$jscomp$inline_247 + "`.")
|
||||
);
|
||||
namesToPlugins[pluginName$jscomp$inline_248] =
|
||||
pluginModule$jscomp$inline_249;
|
||||
isOrderingDirty$jscomp$inline_247 = !0;
|
||||
namesToPlugins[pluginName$jscomp$inline_247] =
|
||||
pluginModule$jscomp$inline_248;
|
||||
isOrderingDirty$jscomp$inline_246 = !0;
|
||||
}
|
||||
}
|
||||
isOrderingDirty$jscomp$inline_247 && recomputePluginOrdering();
|
||||
isOrderingDirty$jscomp$inline_246 && recomputePluginOrdering();
|
||||
var emptyObject$1 = {},
|
||||
removedKeys = null,
|
||||
removedKeyCount = 0,
|
||||
@@ -5089,16 +5089,11 @@ function createCapturedValueAtFiber(value, source) {
|
||||
((stack = getStackByFiberInDevAndProd(source)),
|
||||
CapturedStacks.set(value, stack));
|
||||
} else stack = getStackByFiberInDevAndProd(source);
|
||||
return { value: value, source: source, stack: stack, digest: null };
|
||||
return { value: value, source: source, stack: stack };
|
||||
}
|
||||
function createCapturedValueFromError(value, digest, stack) {
|
||||
function createCapturedValueFromError(value, stack) {
|
||||
"string" === typeof stack && CapturedStacks.set(value, stack);
|
||||
return {
|
||||
value: value,
|
||||
source: null,
|
||||
stack: null != stack ? stack : null,
|
||||
digest: null != digest ? digest : null
|
||||
};
|
||||
return { value: value, source: null, stack: stack };
|
||||
}
|
||||
var reportGlobalError =
|
||||
"function" === typeof reportError
|
||||
@@ -5955,7 +5950,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
(JSCompiler_temp = createCapturedValueFromError(
|
||||
Error(
|
||||
"There was an error while hydrating this Suspense boundary. Switched to client rendering."
|
||||
)
|
||||
),
|
||||
null
|
||||
)),
|
||||
(workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
@@ -6011,11 +6007,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
)),
|
||||
(nextProps.stack = ""),
|
||||
(nextProps.digest = JSCompiler_temp),
|
||||
(JSCompiler_temp = createCapturedValueFromError(
|
||||
nextProps,
|
||||
JSCompiler_temp,
|
||||
void 0
|
||||
)),
|
||||
(JSCompiler_temp = createCapturedValueFromError(nextProps, null)),
|
||||
(workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
workInProgress,
|
||||
@@ -9869,8 +9861,9 @@ function commitRootImpl(
|
||||
finishedWork++
|
||||
)
|
||||
(remainingLanes = recoverableErrors[finishedWork]),
|
||||
(transitions = { componentStack: remainingLanes.stack }),
|
||||
renderPriorityLevel(remainingLanes.value, transitions);
|
||||
renderPriorityLevel(remainingLanes.value, {
|
||||
componentStack: remainingLanes.stack
|
||||
});
|
||||
0 !== (pendingPassiveEffectsLanes & 3) &&
|
||||
0 !== root.tag &&
|
||||
flushPassiveEffects();
|
||||
@@ -10636,10 +10629,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
}
|
||||
};
|
||||
var roots = new Map(),
|
||||
devToolsConfig$jscomp$inline_1104 = {
|
||||
devToolsConfig$jscomp$inline_1101 = {
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "19.0.0-canary-1065157b",
|
||||
version: "19.0.0-canary-743ed8be",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForInstance: getInspectorDataForInstance,
|
||||
@@ -10655,11 +10648,11 @@ var roots = new Map(),
|
||||
}.bind(null, findNodeHandle)
|
||||
}
|
||||
};
|
||||
var internals$jscomp$inline_1341 = {
|
||||
bundleType: devToolsConfig$jscomp$inline_1104.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1104.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1104.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1104.rendererConfig,
|
||||
var internals$jscomp$inline_1338 = {
|
||||
bundleType: devToolsConfig$jscomp$inline_1101.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1101.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1101.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1101.rendererConfig,
|
||||
overrideHookState: null,
|
||||
overrideHookStateDeletePath: null,
|
||||
overrideHookStateRenamePath: null,
|
||||
@@ -10675,26 +10668,26 @@ var internals$jscomp$inline_1341 = {
|
||||
return null === fiber ? null : fiber.stateNode;
|
||||
},
|
||||
findFiberByHostInstance:
|
||||
devToolsConfig$jscomp$inline_1104.findFiberByHostInstance ||
|
||||
devToolsConfig$jscomp$inline_1101.findFiberByHostInstance ||
|
||||
emptyFindFiberByHostInstance,
|
||||
findHostInstancesForRefresh: null,
|
||||
scheduleRefresh: null,
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "19.0.0-canary-1065157b"
|
||||
reconcilerVersion: "19.0.0-canary-743ed8be"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1342 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
var hook$jscomp$inline_1339 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (
|
||||
!hook$jscomp$inline_1342.isDisabled &&
|
||||
hook$jscomp$inline_1342.supportsFiber
|
||||
!hook$jscomp$inline_1339.isDisabled &&
|
||||
hook$jscomp$inline_1339.supportsFiber
|
||||
)
|
||||
try {
|
||||
(rendererID = hook$jscomp$inline_1342.inject(
|
||||
internals$jscomp$inline_1341
|
||||
(rendererID = hook$jscomp$inline_1339.inject(
|
||||
internals$jscomp$inline_1338
|
||||
)),
|
||||
(injectedHook = hook$jscomp$inline_1342);
|
||||
(injectedHook = hook$jscomp$inline_1339);
|
||||
} catch (err) {}
|
||||
}
|
||||
exports.createPortal = function (children, containerTag) {
|
||||
|
||||
+35
-42
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<9dbe74e43cd78023236dba5059713bf8>>
|
||||
* @generated SignedSource<<2c0df7fb4dbca6b68b253a6729ffbfb7>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -897,7 +897,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
||||
"ReactNativeBridgeEventPlugin"
|
||||
]);
|
||||
recomputePluginOrdering();
|
||||
var injectedNamesToPlugins$jscomp$inline_262 = {
|
||||
var injectedNamesToPlugins$jscomp$inline_261 = {
|
||||
ResponderEventPlugin: ResponderEventPlugin,
|
||||
ReactNativeBridgeEventPlugin: {
|
||||
eventTypes: {},
|
||||
@@ -943,32 +943,32 @@ var injectedNamesToPlugins$jscomp$inline_262 = {
|
||||
}
|
||||
}
|
||||
},
|
||||
isOrderingDirty$jscomp$inline_263 = !1,
|
||||
pluginName$jscomp$inline_264;
|
||||
for (pluginName$jscomp$inline_264 in injectedNamesToPlugins$jscomp$inline_262)
|
||||
isOrderingDirty$jscomp$inline_262 = !1,
|
||||
pluginName$jscomp$inline_263;
|
||||
for (pluginName$jscomp$inline_263 in injectedNamesToPlugins$jscomp$inline_261)
|
||||
if (
|
||||
injectedNamesToPlugins$jscomp$inline_262.hasOwnProperty(
|
||||
pluginName$jscomp$inline_264
|
||||
injectedNamesToPlugins$jscomp$inline_261.hasOwnProperty(
|
||||
pluginName$jscomp$inline_263
|
||||
)
|
||||
) {
|
||||
var pluginModule$jscomp$inline_265 =
|
||||
injectedNamesToPlugins$jscomp$inline_262[pluginName$jscomp$inline_264];
|
||||
var pluginModule$jscomp$inline_264 =
|
||||
injectedNamesToPlugins$jscomp$inline_261[pluginName$jscomp$inline_263];
|
||||
if (
|
||||
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_264) ||
|
||||
namesToPlugins[pluginName$jscomp$inline_264] !==
|
||||
pluginModule$jscomp$inline_265
|
||||
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_263) ||
|
||||
namesToPlugins[pluginName$jscomp$inline_263] !==
|
||||
pluginModule$jscomp$inline_264
|
||||
) {
|
||||
if (namesToPlugins[pluginName$jscomp$inline_264])
|
||||
if (namesToPlugins[pluginName$jscomp$inline_263])
|
||||
throw Error(
|
||||
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
||||
(pluginName$jscomp$inline_264 + "`.")
|
||||
(pluginName$jscomp$inline_263 + "`.")
|
||||
);
|
||||
namesToPlugins[pluginName$jscomp$inline_264] =
|
||||
pluginModule$jscomp$inline_265;
|
||||
isOrderingDirty$jscomp$inline_263 = !0;
|
||||
namesToPlugins[pluginName$jscomp$inline_263] =
|
||||
pluginModule$jscomp$inline_264;
|
||||
isOrderingDirty$jscomp$inline_262 = !0;
|
||||
}
|
||||
}
|
||||
isOrderingDirty$jscomp$inline_263 && recomputePluginOrdering();
|
||||
isOrderingDirty$jscomp$inline_262 && recomputePluginOrdering();
|
||||
var emptyObject$1 = {},
|
||||
removedKeys = null,
|
||||
removedKeyCount = 0,
|
||||
@@ -5281,16 +5281,11 @@ function createCapturedValueAtFiber(value, source) {
|
||||
((stack = getStackByFiberInDevAndProd(source)),
|
||||
CapturedStacks.set(value, stack));
|
||||
} else stack = getStackByFiberInDevAndProd(source);
|
||||
return { value: value, source: source, stack: stack, digest: null };
|
||||
return { value: value, source: source, stack: stack };
|
||||
}
|
||||
function createCapturedValueFromError(value, digest, stack) {
|
||||
function createCapturedValueFromError(value, stack) {
|
||||
"string" === typeof stack && CapturedStacks.set(value, stack);
|
||||
return {
|
||||
value: value,
|
||||
source: null,
|
||||
stack: null != stack ? stack : null,
|
||||
digest: null != digest ? digest : null
|
||||
};
|
||||
return { value: value, source: null, stack: stack };
|
||||
}
|
||||
var reportGlobalError =
|
||||
"function" === typeof reportError
|
||||
@@ -6161,7 +6156,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
(JSCompiler_temp = createCapturedValueFromError(
|
||||
Error(
|
||||
"There was an error while hydrating this Suspense boundary. Switched to client rendering."
|
||||
)
|
||||
),
|
||||
null
|
||||
)),
|
||||
(workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
@@ -6217,11 +6213,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
)),
|
||||
(nextProps.stack = ""),
|
||||
(nextProps.digest = JSCompiler_temp),
|
||||
(JSCompiler_temp = createCapturedValueFromError(
|
||||
nextProps,
|
||||
JSCompiler_temp,
|
||||
void 0
|
||||
)),
|
||||
(JSCompiler_temp = createCapturedValueFromError(nextProps, null)),
|
||||
(workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
workInProgress,
|
||||
@@ -10490,8 +10482,9 @@ function commitRootImpl(
|
||||
finishedWork++
|
||||
)
|
||||
(remainingLanes = recoverableErrors[finishedWork]),
|
||||
(transitions = { componentStack: remainingLanes.stack }),
|
||||
renderPriorityLevel(remainingLanes.value, transitions);
|
||||
renderPriorityLevel(remainingLanes.value, {
|
||||
componentStack: remainingLanes.stack
|
||||
});
|
||||
0 !== (pendingPassiveEffectsLanes & 3) &&
|
||||
0 !== root.tag &&
|
||||
flushPassiveEffects();
|
||||
@@ -11343,10 +11336,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
}
|
||||
};
|
||||
var roots = new Map(),
|
||||
devToolsConfig$jscomp$inline_1186 = {
|
||||
devToolsConfig$jscomp$inline_1183 = {
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "19.0.0-canary-feeb7459",
|
||||
version: "19.0.0-canary-3f7007f5",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForInstance: getInspectorDataForInstance,
|
||||
@@ -11376,10 +11369,10 @@ var roots = new Map(),
|
||||
} catch (err) {}
|
||||
return hook.checkDCE ? !0 : !1;
|
||||
})({
|
||||
bundleType: devToolsConfig$jscomp$inline_1186.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1186.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1186.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1186.rendererConfig,
|
||||
bundleType: devToolsConfig$jscomp$inline_1183.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1183.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1183.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1183.rendererConfig,
|
||||
overrideHookState: null,
|
||||
overrideHookStateDeletePath: null,
|
||||
overrideHookStateRenamePath: null,
|
||||
@@ -11395,14 +11388,14 @@ var roots = new Map(),
|
||||
return null === fiber ? null : fiber.stateNode;
|
||||
},
|
||||
findFiberByHostInstance:
|
||||
devToolsConfig$jscomp$inline_1186.findFiberByHostInstance ||
|
||||
devToolsConfig$jscomp$inline_1183.findFiberByHostInstance ||
|
||||
emptyFindFiberByHostInstance,
|
||||
findHostInstancesForRefresh: null,
|
||||
scheduleRefresh: null,
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "19.0.0-canary-feeb7459"
|
||||
reconcilerVersion: "19.0.0-canary-3f7007f5"
|
||||
});
|
||||
exports.createPortal = function (children, containerTag) {
|
||||
return createPortal$1(
|
||||
|
||||
+24
-36
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<29c94384161e3a1a33fb8ae6d6155a35>>
|
||||
* @generated SignedSource<<71cd5103b462b5ff4b0edae9a4648373>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -17109,11 +17109,10 @@ to return true:wantsResponderID| |
|
||||
return {
|
||||
value: value,
|
||||
source: source,
|
||||
stack: stack,
|
||||
digest: null
|
||||
stack: stack
|
||||
};
|
||||
}
|
||||
function createCapturedValueFromError(value, digest, stack) {
|
||||
function createCapturedValueFromError(value, stack) {
|
||||
if (typeof stack === "string") {
|
||||
CapturedStacks.set(value, stack);
|
||||
}
|
||||
@@ -17121,8 +17120,7 @@ to return true:wantsResponderID| |
|
||||
return {
|
||||
value: value,
|
||||
source: null,
|
||||
stack: stack != null ? stack : null,
|
||||
digest: digest != null ? digest : null
|
||||
stack: stack
|
||||
};
|
||||
}
|
||||
|
||||
@@ -19756,7 +19754,9 @@ to return true:wantsResponderID| |
|
||||
// get an update and we'll never be able to hydrate the final content. Let's just try the
|
||||
// client side render instead.
|
||||
var digest;
|
||||
var message, stack, componentStack;
|
||||
var message;
|
||||
var stack = null;
|
||||
var componentStack = null;
|
||||
|
||||
{
|
||||
var _getSuspenseInstanceF =
|
||||
@@ -19788,8 +19788,7 @@ to return true:wantsResponderID| |
|
||||
error.digest = digest;
|
||||
capturedValue = createCapturedValueFromError(
|
||||
error,
|
||||
digest,
|
||||
componentStack
|
||||
componentStack === undefined ? null : componentStack
|
||||
);
|
||||
}
|
||||
|
||||
@@ -19904,7 +19903,8 @@ to return true:wantsResponderID| |
|
||||
new Error(
|
||||
"There was an error while hydrating this Suspense boundary. " +
|
||||
"Switched to client rendering."
|
||||
)
|
||||
),
|
||||
null
|
||||
);
|
||||
|
||||
return retrySuspenseComponentWithoutHydrating(
|
||||
@@ -28944,35 +28944,23 @@ to return true:wantsResponderID| |
|
||||
}
|
||||
|
||||
function makeErrorInfo(componentStack) {
|
||||
var errorInfo = {
|
||||
componentStack: componentStack
|
||||
};
|
||||
|
||||
{
|
||||
var errorInfo = {
|
||||
componentStack: componentStack
|
||||
};
|
||||
return new Proxy(errorInfo, {
|
||||
get: function (target, prop, receiver) {
|
||||
if (prop === "digest") {
|
||||
error(
|
||||
'You are accessing "digest" from the errorInfo object passed to onRecoverableError.' +
|
||||
" This property is no longer provided as part of errorInfo but can be accessed as a property" +
|
||||
" of the Error instance itself."
|
||||
);
|
||||
}
|
||||
|
||||
return Reflect.get(target, prop, receiver);
|
||||
},
|
||||
has: function (target, prop) {
|
||||
if (prop === "digest") {
|
||||
error(
|
||||
'You are accessing "digest" from the errorInfo object passed to onRecoverableError.' +
|
||||
" This property is no longer provided as part of errorInfo but can be accessed as a property" +
|
||||
" of the Error instance itself."
|
||||
);
|
||||
}
|
||||
|
||||
return Reflect.has(target, prop);
|
||||
Object.defineProperty(errorInfo, "digest", {
|
||||
get: function () {
|
||||
error(
|
||||
'You are accessing "digest" from the errorInfo object passed to onRecoverableError.' +
|
||||
" This property is no longer provided as part of errorInfo but can be accessed as a property" +
|
||||
" of the Error instance itself."
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return errorInfo;
|
||||
}
|
||||
|
||||
function releaseRootPooledCache(root, remainingLanes) {
|
||||
@@ -31048,7 +31036,7 @@ to return true:wantsResponderID| |
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "19.0.0-canary-366999b3";
|
||||
var ReactVersion = "19.0.0-canary-f96bc1cd";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
|
||||
+42
-49
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<6b9cf5f3bb5fc8873d7404b36e5c3753>>
|
||||
* @generated SignedSource<<9bc0742bde7dd63043c0e405fa0d9531>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -893,7 +893,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
||||
"ReactNativeBridgeEventPlugin"
|
||||
]);
|
||||
recomputePluginOrdering();
|
||||
var injectedNamesToPlugins$jscomp$inline_253 = {
|
||||
var injectedNamesToPlugins$jscomp$inline_252 = {
|
||||
ResponderEventPlugin: ResponderEventPlugin,
|
||||
ReactNativeBridgeEventPlugin: {
|
||||
eventTypes: {},
|
||||
@@ -939,32 +939,32 @@ var injectedNamesToPlugins$jscomp$inline_253 = {
|
||||
}
|
||||
}
|
||||
},
|
||||
isOrderingDirty$jscomp$inline_254 = !1,
|
||||
pluginName$jscomp$inline_255;
|
||||
for (pluginName$jscomp$inline_255 in injectedNamesToPlugins$jscomp$inline_253)
|
||||
isOrderingDirty$jscomp$inline_253 = !1,
|
||||
pluginName$jscomp$inline_254;
|
||||
for (pluginName$jscomp$inline_254 in injectedNamesToPlugins$jscomp$inline_252)
|
||||
if (
|
||||
injectedNamesToPlugins$jscomp$inline_253.hasOwnProperty(
|
||||
pluginName$jscomp$inline_255
|
||||
injectedNamesToPlugins$jscomp$inline_252.hasOwnProperty(
|
||||
pluginName$jscomp$inline_254
|
||||
)
|
||||
) {
|
||||
var pluginModule$jscomp$inline_256 =
|
||||
injectedNamesToPlugins$jscomp$inline_253[pluginName$jscomp$inline_255];
|
||||
var pluginModule$jscomp$inline_255 =
|
||||
injectedNamesToPlugins$jscomp$inline_252[pluginName$jscomp$inline_254];
|
||||
if (
|
||||
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_255) ||
|
||||
namesToPlugins[pluginName$jscomp$inline_255] !==
|
||||
pluginModule$jscomp$inline_256
|
||||
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_254) ||
|
||||
namesToPlugins[pluginName$jscomp$inline_254] !==
|
||||
pluginModule$jscomp$inline_255
|
||||
) {
|
||||
if (namesToPlugins[pluginName$jscomp$inline_255])
|
||||
if (namesToPlugins[pluginName$jscomp$inline_254])
|
||||
throw Error(
|
||||
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
||||
(pluginName$jscomp$inline_255 + "`.")
|
||||
(pluginName$jscomp$inline_254 + "`.")
|
||||
);
|
||||
namesToPlugins[pluginName$jscomp$inline_255] =
|
||||
pluginModule$jscomp$inline_256;
|
||||
isOrderingDirty$jscomp$inline_254 = !0;
|
||||
namesToPlugins[pluginName$jscomp$inline_254] =
|
||||
pluginModule$jscomp$inline_255;
|
||||
isOrderingDirty$jscomp$inline_253 = !0;
|
||||
}
|
||||
}
|
||||
isOrderingDirty$jscomp$inline_254 && recomputePluginOrdering();
|
||||
isOrderingDirty$jscomp$inline_253 && recomputePluginOrdering();
|
||||
var instanceCache = new Map(),
|
||||
instanceProps = new Map();
|
||||
function getInstanceFromTag(tag) {
|
||||
@@ -5154,16 +5154,11 @@ function createCapturedValueAtFiber(value, source) {
|
||||
((stack = getStackByFiberInDevAndProd(source)),
|
||||
CapturedStacks.set(value, stack));
|
||||
} else stack = getStackByFiberInDevAndProd(source);
|
||||
return { value: value, source: source, stack: stack, digest: null };
|
||||
return { value: value, source: source, stack: stack };
|
||||
}
|
||||
function createCapturedValueFromError(value, digest, stack) {
|
||||
function createCapturedValueFromError(value, stack) {
|
||||
"string" === typeof stack && CapturedStacks.set(value, stack);
|
||||
return {
|
||||
value: value,
|
||||
source: null,
|
||||
stack: null != stack ? stack : null,
|
||||
digest: null != digest ? digest : null
|
||||
};
|
||||
return { value: value, source: null, stack: stack };
|
||||
}
|
||||
var reportGlobalError =
|
||||
"function" === typeof reportError
|
||||
@@ -6020,7 +6015,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
(JSCompiler_temp = createCapturedValueFromError(
|
||||
Error(
|
||||
"There was an error while hydrating this Suspense boundary. Switched to client rendering."
|
||||
)
|
||||
),
|
||||
null
|
||||
)),
|
||||
(workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
@@ -6076,11 +6072,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
)),
|
||||
(nextProps.stack = ""),
|
||||
(nextProps.digest = JSCompiler_temp),
|
||||
(JSCompiler_temp = createCapturedValueFromError(
|
||||
nextProps,
|
||||
JSCompiler_temp,
|
||||
void 0
|
||||
)),
|
||||
(JSCompiler_temp = createCapturedValueFromError(nextProps, null)),
|
||||
(workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
workInProgress,
|
||||
@@ -10078,8 +10070,9 @@ function commitRootImpl(
|
||||
finishedWork++
|
||||
)
|
||||
(remainingLanes = recoverableErrors[finishedWork]),
|
||||
(transitions = { componentStack: remainingLanes.stack }),
|
||||
renderPriorityLevel(remainingLanes.value, transitions);
|
||||
renderPriorityLevel(remainingLanes.value, {
|
||||
componentStack: remainingLanes.stack
|
||||
});
|
||||
0 !== (pendingPassiveEffectsLanes & 3) &&
|
||||
0 !== root.tag &&
|
||||
flushPassiveEffects();
|
||||
@@ -10852,10 +10845,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
}
|
||||
};
|
||||
var roots = new Map(),
|
||||
devToolsConfig$jscomp$inline_1171 = {
|
||||
devToolsConfig$jscomp$inline_1168 = {
|
||||
findFiberByHostInstance: getInstanceFromTag,
|
||||
bundleType: 0,
|
||||
version: "19.0.0-canary-2d04f3bb",
|
||||
version: "19.0.0-canary-18334a6c",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForInstance: getInspectorDataForInstance,
|
||||
@@ -10871,11 +10864,11 @@ var roots = new Map(),
|
||||
}.bind(null, findNodeHandle)
|
||||
}
|
||||
};
|
||||
var internals$jscomp$inline_1422 = {
|
||||
bundleType: devToolsConfig$jscomp$inline_1171.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1171.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1171.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1171.rendererConfig,
|
||||
var internals$jscomp$inline_1419 = {
|
||||
bundleType: devToolsConfig$jscomp$inline_1168.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1168.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1168.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1168.rendererConfig,
|
||||
overrideHookState: null,
|
||||
overrideHookStateDeletePath: null,
|
||||
overrideHookStateRenamePath: null,
|
||||
@@ -10891,26 +10884,26 @@ var internals$jscomp$inline_1422 = {
|
||||
return null === fiber ? null : fiber.stateNode;
|
||||
},
|
||||
findFiberByHostInstance:
|
||||
devToolsConfig$jscomp$inline_1171.findFiberByHostInstance ||
|
||||
devToolsConfig$jscomp$inline_1168.findFiberByHostInstance ||
|
||||
emptyFindFiberByHostInstance,
|
||||
findHostInstancesForRefresh: null,
|
||||
scheduleRefresh: null,
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "19.0.0-canary-2d04f3bb"
|
||||
reconcilerVersion: "19.0.0-canary-18334a6c"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1423 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
var hook$jscomp$inline_1420 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (
|
||||
!hook$jscomp$inline_1423.isDisabled &&
|
||||
hook$jscomp$inline_1423.supportsFiber
|
||||
!hook$jscomp$inline_1420.isDisabled &&
|
||||
hook$jscomp$inline_1420.supportsFiber
|
||||
)
|
||||
try {
|
||||
(rendererID = hook$jscomp$inline_1423.inject(
|
||||
internals$jscomp$inline_1422
|
||||
(rendererID = hook$jscomp$inline_1420.inject(
|
||||
internals$jscomp$inline_1419
|
||||
)),
|
||||
(injectedHook = hook$jscomp$inline_1423);
|
||||
(injectedHook = hook$jscomp$inline_1420);
|
||||
} catch (err) {}
|
||||
}
|
||||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
||||
|
||||
+35
-42
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<2fd9d14d7cf1c89a35f0ee934ecc3eda>>
|
||||
* @generated SignedSource<<fc27d724c0f8d7f6a049705a480b49c9>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -897,7 +897,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
||||
"ReactNativeBridgeEventPlugin"
|
||||
]);
|
||||
recomputePluginOrdering();
|
||||
var injectedNamesToPlugins$jscomp$inline_269 = {
|
||||
var injectedNamesToPlugins$jscomp$inline_268 = {
|
||||
ResponderEventPlugin: ResponderEventPlugin,
|
||||
ReactNativeBridgeEventPlugin: {
|
||||
eventTypes: {},
|
||||
@@ -943,32 +943,32 @@ var injectedNamesToPlugins$jscomp$inline_269 = {
|
||||
}
|
||||
}
|
||||
},
|
||||
isOrderingDirty$jscomp$inline_270 = !1,
|
||||
pluginName$jscomp$inline_271;
|
||||
for (pluginName$jscomp$inline_271 in injectedNamesToPlugins$jscomp$inline_269)
|
||||
isOrderingDirty$jscomp$inline_269 = !1,
|
||||
pluginName$jscomp$inline_270;
|
||||
for (pluginName$jscomp$inline_270 in injectedNamesToPlugins$jscomp$inline_268)
|
||||
if (
|
||||
injectedNamesToPlugins$jscomp$inline_269.hasOwnProperty(
|
||||
pluginName$jscomp$inline_271
|
||||
injectedNamesToPlugins$jscomp$inline_268.hasOwnProperty(
|
||||
pluginName$jscomp$inline_270
|
||||
)
|
||||
) {
|
||||
var pluginModule$jscomp$inline_272 =
|
||||
injectedNamesToPlugins$jscomp$inline_269[pluginName$jscomp$inline_271];
|
||||
var pluginModule$jscomp$inline_271 =
|
||||
injectedNamesToPlugins$jscomp$inline_268[pluginName$jscomp$inline_270];
|
||||
if (
|
||||
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_271) ||
|
||||
namesToPlugins[pluginName$jscomp$inline_271] !==
|
||||
pluginModule$jscomp$inline_272
|
||||
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_270) ||
|
||||
namesToPlugins[pluginName$jscomp$inline_270] !==
|
||||
pluginModule$jscomp$inline_271
|
||||
) {
|
||||
if (namesToPlugins[pluginName$jscomp$inline_271])
|
||||
if (namesToPlugins[pluginName$jscomp$inline_270])
|
||||
throw Error(
|
||||
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
||||
(pluginName$jscomp$inline_271 + "`.")
|
||||
(pluginName$jscomp$inline_270 + "`.")
|
||||
);
|
||||
namesToPlugins[pluginName$jscomp$inline_271] =
|
||||
pluginModule$jscomp$inline_272;
|
||||
isOrderingDirty$jscomp$inline_270 = !0;
|
||||
namesToPlugins[pluginName$jscomp$inline_270] =
|
||||
pluginModule$jscomp$inline_271;
|
||||
isOrderingDirty$jscomp$inline_269 = !0;
|
||||
}
|
||||
}
|
||||
isOrderingDirty$jscomp$inline_270 && recomputePluginOrdering();
|
||||
isOrderingDirty$jscomp$inline_269 && recomputePluginOrdering();
|
||||
var instanceCache = new Map(),
|
||||
instanceProps = new Map();
|
||||
function getInstanceFromTag(tag) {
|
||||
@@ -5346,16 +5346,11 @@ function createCapturedValueAtFiber(value, source) {
|
||||
((stack = getStackByFiberInDevAndProd(source)),
|
||||
CapturedStacks.set(value, stack));
|
||||
} else stack = getStackByFiberInDevAndProd(source);
|
||||
return { value: value, source: source, stack: stack, digest: null };
|
||||
return { value: value, source: source, stack: stack };
|
||||
}
|
||||
function createCapturedValueFromError(value, digest, stack) {
|
||||
function createCapturedValueFromError(value, stack) {
|
||||
"string" === typeof stack && CapturedStacks.set(value, stack);
|
||||
return {
|
||||
value: value,
|
||||
source: null,
|
||||
stack: null != stack ? stack : null,
|
||||
digest: null != digest ? digest : null
|
||||
};
|
||||
return { value: value, source: null, stack: stack };
|
||||
}
|
||||
var reportGlobalError =
|
||||
"function" === typeof reportError
|
||||
@@ -6226,7 +6221,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
(JSCompiler_temp = createCapturedValueFromError(
|
||||
Error(
|
||||
"There was an error while hydrating this Suspense boundary. Switched to client rendering."
|
||||
)
|
||||
),
|
||||
null
|
||||
)),
|
||||
(workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
@@ -6282,11 +6278,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
)),
|
||||
(nextProps.stack = ""),
|
||||
(nextProps.digest = JSCompiler_temp),
|
||||
(JSCompiler_temp = createCapturedValueFromError(
|
||||
nextProps,
|
||||
JSCompiler_temp,
|
||||
void 0
|
||||
)),
|
||||
(JSCompiler_temp = createCapturedValueFromError(nextProps, null)),
|
||||
(workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
workInProgress,
|
||||
@@ -10700,8 +10692,9 @@ function commitRootImpl(
|
||||
finishedWork++
|
||||
)
|
||||
(remainingLanes = recoverableErrors[finishedWork]),
|
||||
(transitions = { componentStack: remainingLanes.stack }),
|
||||
renderPriorityLevel(remainingLanes.value, transitions);
|
||||
renderPriorityLevel(remainingLanes.value, {
|
||||
componentStack: remainingLanes.stack
|
||||
});
|
||||
0 !== (pendingPassiveEffectsLanes & 3) &&
|
||||
0 !== root.tag &&
|
||||
flushPassiveEffects();
|
||||
@@ -11560,10 +11553,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
}
|
||||
};
|
||||
var roots = new Map(),
|
||||
devToolsConfig$jscomp$inline_1253 = {
|
||||
devToolsConfig$jscomp$inline_1250 = {
|
||||
findFiberByHostInstance: getInstanceFromTag,
|
||||
bundleType: 0,
|
||||
version: "19.0.0-canary-7e371444",
|
||||
version: "19.0.0-canary-694beb7a",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForInstance: getInspectorDataForInstance,
|
||||
@@ -11593,10 +11586,10 @@ var roots = new Map(),
|
||||
} catch (err) {}
|
||||
return hook.checkDCE ? !0 : !1;
|
||||
})({
|
||||
bundleType: devToolsConfig$jscomp$inline_1253.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1253.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1253.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1253.rendererConfig,
|
||||
bundleType: devToolsConfig$jscomp$inline_1250.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1250.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1250.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1250.rendererConfig,
|
||||
overrideHookState: null,
|
||||
overrideHookStateDeletePath: null,
|
||||
overrideHookStateRenamePath: null,
|
||||
@@ -11612,14 +11605,14 @@ var roots = new Map(),
|
||||
return null === fiber ? null : fiber.stateNode;
|
||||
},
|
||||
findFiberByHostInstance:
|
||||
devToolsConfig$jscomp$inline_1253.findFiberByHostInstance ||
|
||||
devToolsConfig$jscomp$inline_1250.findFiberByHostInstance ||
|
||||
emptyFindFiberByHostInstance,
|
||||
findHostInstancesForRefresh: null,
|
||||
scheduleRefresh: null,
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "19.0.0-canary-7e371444"
|
||||
reconcilerVersion: "19.0.0-canary-694beb7a"
|
||||
});
|
||||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
||||
computeComponentStackForErrorReporting: function (reactTag) {
|
||||
|
||||
Reference in New Issue
Block a user