React Native sync for revisions 2d8d133...0eea577
Summary: - **[0eea57724](https://github.com/facebook/react/commit/0eea57724 )**: Fix typo in comment (accumlated → accumulated) ([#21637](https://github.com/facebook/react/pull/21637)) //<ithinker5>// - **[0706162ba](https://github.com/facebook/react/commit/0706162ba )**: Fix typo in comment (environement → environment) ([#21635](https://github.com/facebook/react/pull/21635)) //<niexq>// - **[9d17b562b](https://github.com/facebook/react/commit/9d17b562b )**: Fix typo in comment (satsify → satisfy) ([#21629](https://github.com/facebook/react/pull/21629)) //<niexq>// - **[b610fec00](https://github.com/facebook/react/commit/b610fec00 )**: fix comments: expiration time -> lanes ([#21551](https://github.com/facebook/react/pull/21551)) //<Shannon Feng>// - **[cc4d24ab0](https://github.com/facebook/react/commit/cc4d24ab0 )**: [Fizz] Always call flush() if it exists ([#21625](https://github.com/facebook/react/pull/21625)) //<Dan Abramov>// - **[e0d9b2899](https://github.com/facebook/react/commit/e0d9b2899 )**: [Fizz] Minor Fixes for Warning Parity ([#21618](https://github.com/facebook/react/pull/21618)) //<Sebastian Markbåge>// - **[1b7b3592f](https://github.com/facebook/react/commit/1b7b3592f )**: [Fizz] Implement Component Stacks in DEV for warnings ([#21610](https://github.com/facebook/react/pull/21610)) //<Sebastian Markbåge>// - **[39f007489](https://github.com/facebook/react/commit/39f007489 )**: Make enableSuspenseLayoutEffectSemantics static for www ([#21617](https://github.com/facebook/react/pull/21617)) //<Brian Vaughn>// - **[8f3794276](https://github.com/facebook/react/commit/8f3794276 )**: Prepare semver (`latest`) releases in CI ([#21615](https://github.com/facebook/react/pull/21615)) //<Andrew Clark>// - **[8b4201535](https://github.com/facebook/react/commit/8b4201535 )**: Devtools: add feature to trigger an error boundary ([#21583](https://github.com/facebook/react/pull/21583)) //<Bao Pham>// - **[154a8cf32](https://github.com/facebook/react/commit/154a8cf32 )**: Fix reference to wrong variable //<Andrew Clark>// - **[6736a38b9](https://github.com/facebook/react/commit/6736a38b9 )**: Add single source of truth for package versions ([#21608](https://github.com/facebook/react/pull/21608)) //<Andrew Clark>// - **[86715efa2](https://github.com/facebook/react/commit/86715efa2 )**: Resolve the true entry point during tests ([#21505](https://github.com/facebook/react/pull/21505)) //<Sebastian Markbåge>// - **[a8a4742f1](https://github.com/facebook/react/commit/a8a4742f1 )**: Convert ES6/TypeScript/CoffeeScript Tests to createRoot + act ([#21598](https://github.com/facebook/react/pull/21598)) //<Sebastian Markbåge>// - **[1d3558965](https://github.com/facebook/react/commit/1d3558965 )**: Disable deferRenderPhaseUpdateToNextBatch by default ([#21605](https://github.com/facebook/react/pull/21605)) //<Sebastian Markbåge>// - **[a8964649b](https://github.com/facebook/react/commit/a8964649b )**: Delete an unused field ([#21415](https://github.com/facebook/react/pull/21415)) //<okmttdhr>// - **[76f85b3e5](https://github.com/facebook/react/commit/76f85b3e5 )**: Expose Fizz in stable builds ([#21602](https://github.com/facebook/react/pull/21602)) //<Dan Abramov>// - **[e16d61c30](https://github.com/facebook/react/commit/e16d61c30 )**: [Offscreen] Mount/unmount layout effects ([#21386](https://github.com/facebook/react/pull/21386)) //<Andrew Clark>// - **[63091939b](https://github.com/facebook/react/commit/63091939b )**: OSS feature flag updates ([#21597](https://github.com/facebook/react/pull/21597)) //<Brian Vaughn>// - **[efbd69b27](https://github.com/facebook/react/commit/efbd69b27 )**: Define global __WWW__ = true flag during www tests ([#21504](https://github.com/facebook/react/pull/21504)) //<Sebastian Markbåge>// - **[28625c6f4](https://github.com/facebook/react/commit/28625c6f4 )**: Disable strict effects for legacy roots (again) ([#21591](https://github.com/facebook/react/pull/21591)) //<Brian Vaughn>// - **[3c2341416](https://github.com/facebook/react/commit/3c2341416 )**: Update jest to v26 ([#21574](https://github.com/facebook/react/pull/21574)) //<Sebastian Silbermann>// - **[0d493dcda](https://github.com/facebook/react/commit/0d493dcda )**: Removed _debugID field from Fiber - Issue #21558 ([#21570](https://github.com/facebook/react/pull/21570)) //<Pulkit Sharma>// - **[7841d0695](https://github.com/facebook/react/commit/7841d0695 )**: Enable the updater-tracking feature flag in more builds ([#21567](https://github.com/facebook/react/pull/21567)) //<Brian Vaughn>// - **[6405efc36](https://github.com/facebook/react/commit/6405efc36 )**: Enabled Profiling feature flags for OSS release ([#21565](https://github.com/facebook/react/pull/21565)) //<Brian Vaughn>// Changelog: [General][Changed] - React Native sync for revisions 2d8d133...0eea577 jest_e2e[run_all_tests] Reviewed By: bvaughn Differential Revision: D28932083 fbshipit-source-id: 012c1bfb857ed59d7283334d633f1cce8ec50360
This commit is contained in:
Родитель
4246c75d0d
Коммит
a403e76177
|
@ -1 +1 @@
|
|||
2d8d133e1756ea50a48e615db0c22870e92f4af6
|
||||
0eea5772486318c5b2922c8b36680cf4744615d6
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -7,7 +7,7 @@
|
|||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<fa60bbe943550ad6b4198e70879e32ab>>
|
||||
* @generated SignedSource<<683bd75bd1f5651f1e727c13530bd075>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
@ -2182,8 +2182,7 @@ function readContext(context) {
|
|||
lastContextDependency = context;
|
||||
currentlyRenderingFiber.dependencies = {
|
||||
lanes: 0,
|
||||
firstContext: context,
|
||||
responders: null
|
||||
firstContext: context
|
||||
};
|
||||
} else lastContextDependency = lastContextDependency.next = context;
|
||||
return value;
|
||||
|
@ -2224,7 +2223,9 @@ function enqueueUpdate(fiber, update) {
|
|||
var updateQueue = fiber.updateQueue;
|
||||
null !== updateQueue &&
|
||||
((updateQueue = updateQueue.shared),
|
||||
null !== workInProgressRoot && 0 !== (fiber.mode & 1)
|
||||
null !== workInProgressRoot &&
|
||||
0 !== (fiber.mode & 1) &&
|
||||
0 === (executionContext & 8)
|
||||
? ((fiber = updateQueue.interleaved),
|
||||
null === fiber
|
||||
? ((update.next = update),
|
||||
|
@ -3782,7 +3783,11 @@ function dispatchAction(fiber, queue, action) {
|
|||
: ((update.next = lane.next), (lane.next = update)),
|
||||
(queue.pending = update);
|
||||
else {
|
||||
if (null !== workInProgressRoot && 0 !== (fiber.mode & 1)) {
|
||||
if (
|
||||
null !== workInProgressRoot &&
|
||||
0 !== (fiber.mode & 1) &&
|
||||
0 === (executionContext & 8)
|
||||
) {
|
||||
var interleaved = queue.interleaved;
|
||||
null === interleaved
|
||||
? ((update.next = update),
|
||||
|
@ -4019,8 +4024,82 @@ var ContextOnlyDispatcher = {
|
|||
return rerenderReducer(basicStateReducer)[0];
|
||||
},
|
||||
unstable_isNewReconciler: !1
|
||||
},
|
||||
ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
||||
};
|
||||
function createCapturedValue(value, source) {
|
||||
try {
|
||||
var info = "",
|
||||
node = source;
|
||||
do (info += describeFiber(node)), (node = node.return);
|
||||
while (node);
|
||||
var JSCompiler_inline_result = info;
|
||||
} catch (x) {
|
||||
JSCompiler_inline_result =
|
||||
"\nError generating stack: " + x.message + "\n" + x.stack;
|
||||
}
|
||||
return { value: value, source: source, stack: JSCompiler_inline_result };
|
||||
}
|
||||
if (
|
||||
"function" !==
|
||||
typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog
|
||||
)
|
||||
throw Error(
|
||||
"Expected ReactFiberErrorDialog.showErrorDialog to be a function."
|
||||
);
|
||||
function logCapturedError(boundary, errorInfo) {
|
||||
try {
|
||||
!1 !==
|
||||
ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog({
|
||||
componentStack: null !== errorInfo.stack ? errorInfo.stack : "",
|
||||
error: errorInfo.value,
|
||||
errorBoundary:
|
||||
null !== boundary && 1 === boundary.tag ? boundary.stateNode : null
|
||||
}) && console.error(errorInfo.value);
|
||||
} catch (e) {
|
||||
setTimeout(function() {
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
}
|
||||
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
||||
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
lane.payload = { element: null };
|
||||
var error = errorInfo.value;
|
||||
lane.callback = function() {
|
||||
hasUncaughtError || ((hasUncaughtError = !0), (firstUncaughtError = error));
|
||||
logCapturedError(fiber, errorInfo);
|
||||
};
|
||||
return lane;
|
||||
}
|
||||
function createClassErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
||||
if ("function" === typeof getDerivedStateFromError) {
|
||||
var error = errorInfo.value;
|
||||
lane.payload = function() {
|
||||
logCapturedError(fiber, errorInfo);
|
||||
return getDerivedStateFromError(error);
|
||||
};
|
||||
}
|
||||
var inst = fiber.stateNode;
|
||||
null !== inst &&
|
||||
"function" === typeof inst.componentDidCatch &&
|
||||
(lane.callback = function() {
|
||||
"function" !== typeof getDerivedStateFromError &&
|
||||
(null === legacyErrorBoundariesThatAlreadyFailed
|
||||
? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))
|
||||
: legacyErrorBoundariesThatAlreadyFailed.add(this),
|
||||
logCapturedError(fiber, errorInfo));
|
||||
var stack = errorInfo.stack;
|
||||
this.componentDidCatch(errorInfo.value, {
|
||||
componentStack: null !== stack ? stack : ""
|
||||
});
|
||||
});
|
||||
return lane;
|
||||
}
|
||||
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
||||
didReceiveUpdate = !1;
|
||||
function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
|
||||
workInProgress.child =
|
||||
|
@ -5038,14 +5117,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|||
break;
|
||||
case "collapsed":
|
||||
lastTailNode = renderState.tail;
|
||||
for (var lastTailNode$64 = null; null !== lastTailNode; )
|
||||
null !== lastTailNode.alternate && (lastTailNode$64 = lastTailNode),
|
||||
for (var lastTailNode$69 = null; null !== lastTailNode; )
|
||||
null !== lastTailNode.alternate && (lastTailNode$69 = lastTailNode),
|
||||
(lastTailNode = lastTailNode.sibling);
|
||||
null === lastTailNode$64
|
||||
null === lastTailNode$69
|
||||
? hasRenderedATailFallback || null === renderState.tail
|
||||
? (renderState.tail = null)
|
||||
: (renderState.tail.sibling = null)
|
||||
: (lastTailNode$64.sibling = null);
|
||||
: (lastTailNode$69.sibling = null);
|
||||
}
|
||||
}
|
||||
function bubbleProperties(completedWork) {
|
||||
|
@ -5055,19 +5134,19 @@ function bubbleProperties(completedWork) {
|
|||
newChildLanes = 0,
|
||||
subtreeFlags = 0;
|
||||
if (didBailout)
|
||||
for (var child$65 = completedWork.child; null !== child$65; )
|
||||
(newChildLanes |= child$65.lanes | child$65.childLanes),
|
||||
(subtreeFlags |= child$65.subtreeFlags & 1835008),
|
||||
(subtreeFlags |= child$65.flags & 1835008),
|
||||
(child$65.return = completedWork),
|
||||
(child$65 = child$65.sibling);
|
||||
for (var child$70 = completedWork.child; null !== child$70; )
|
||||
(newChildLanes |= child$70.lanes | child$70.childLanes),
|
||||
(subtreeFlags |= child$70.subtreeFlags & 1835008),
|
||||
(subtreeFlags |= child$70.flags & 1835008),
|
||||
(child$70.return = completedWork),
|
||||
(child$70 = child$70.sibling);
|
||||
else
|
||||
for (child$65 = completedWork.child; null !== child$65; )
|
||||
(newChildLanes |= child$65.lanes | child$65.childLanes),
|
||||
(subtreeFlags |= child$65.subtreeFlags),
|
||||
(subtreeFlags |= child$65.flags),
|
||||
(child$65.return = completedWork),
|
||||
(child$65 = child$65.sibling);
|
||||
for (child$70 = completedWork.child; null !== child$70; )
|
||||
(newChildLanes |= child$70.lanes | child$70.childLanes),
|
||||
(subtreeFlags |= child$70.subtreeFlags),
|
||||
(subtreeFlags |= child$70.flags),
|
||||
(child$70.return = completedWork),
|
||||
(child$70 = child$70.sibling);
|
||||
completedWork.subtreeFlags |= subtreeFlags;
|
||||
completedWork.childLanes = newChildLanes;
|
||||
return didBailout;
|
||||
|
@ -5426,80 +5505,6 @@ function unwindWork(workInProgress) {
|
|||
return null;
|
||||
}
|
||||
}
|
||||
function createCapturedValue(value, source) {
|
||||
try {
|
||||
var info = "",
|
||||
node = source;
|
||||
do (info += describeFiber(node)), (node = node.return);
|
||||
while (node);
|
||||
var JSCompiler_inline_result = info;
|
||||
} catch (x) {
|
||||
JSCompiler_inline_result =
|
||||
"\nError generating stack: " + x.message + "\n" + x.stack;
|
||||
}
|
||||
return { value: value, source: source, stack: JSCompiler_inline_result };
|
||||
}
|
||||
if (
|
||||
"function" !==
|
||||
typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog
|
||||
)
|
||||
throw Error(
|
||||
"Expected ReactFiberErrorDialog.showErrorDialog to be a function."
|
||||
);
|
||||
function logCapturedError(boundary, errorInfo) {
|
||||
try {
|
||||
!1 !==
|
||||
ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog({
|
||||
componentStack: null !== errorInfo.stack ? errorInfo.stack : "",
|
||||
error: errorInfo.value,
|
||||
errorBoundary:
|
||||
null !== boundary && 1 === boundary.tag ? boundary.stateNode : null
|
||||
}) && console.error(errorInfo.value);
|
||||
} catch (e) {
|
||||
setTimeout(function() {
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
}
|
||||
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
||||
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
lane.payload = { element: null };
|
||||
var error = errorInfo.value;
|
||||
lane.callback = function() {
|
||||
hasUncaughtError || ((hasUncaughtError = !0), (firstUncaughtError = error));
|
||||
logCapturedError(fiber, errorInfo);
|
||||
};
|
||||
return lane;
|
||||
}
|
||||
function createClassErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
||||
if ("function" === typeof getDerivedStateFromError) {
|
||||
var error = errorInfo.value;
|
||||
lane.payload = function() {
|
||||
logCapturedError(fiber, errorInfo);
|
||||
return getDerivedStateFromError(error);
|
||||
};
|
||||
}
|
||||
var inst = fiber.stateNode;
|
||||
null !== inst &&
|
||||
"function" === typeof inst.componentDidCatch &&
|
||||
(lane.callback = function() {
|
||||
"function" !== typeof getDerivedStateFromError &&
|
||||
(null === legacyErrorBoundariesThatAlreadyFailed
|
||||
? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))
|
||||
: legacyErrorBoundariesThatAlreadyFailed.add(this),
|
||||
logCapturedError(fiber, errorInfo));
|
||||
var stack = errorInfo.stack;
|
||||
this.componentDidCatch(errorInfo.value, {
|
||||
componentStack: null !== stack ? stack : ""
|
||||
});
|
||||
});
|
||||
return lane;
|
||||
}
|
||||
var PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set,
|
||||
nextEffect = null;
|
||||
function safelyDetachRef(current, nearestMountedAncestor) {
|
||||
|
@ -5998,6 +6003,8 @@ function requestEventTime() {
|
|||
}
|
||||
function requestUpdateLane(fiber) {
|
||||
if (0 === (fiber.mode & 1)) return 1;
|
||||
if (0 !== (executionContext & 8) && 0 !== workInProgressRootRenderLanes)
|
||||
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
|
||||
if (0 !== ReactCurrentBatchConfig.transition)
|
||||
return (
|
||||
0 === currentEventTransitionLane &&
|
||||
|
@ -6021,7 +6028,7 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|||
if (null === root) return null;
|
||||
markRootUpdated(root, lane, eventTime);
|
||||
root === workInProgressRoot &&
|
||||
((workInProgressRootUpdatedLanes |= lane),
|
||||
(0 === (executionContext & 8) && (workInProgressRootUpdatedLanes |= lane),
|
||||
4 === workInProgressRootExitStatus &&
|
||||
markRootSuspended$1(root, workInProgressRootRenderLanes));
|
||||
1 === lane
|
||||
|
@ -6427,15 +6434,15 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
}
|
||||
var hasInvisibleParentBoundary =
|
||||
0 !== (suspenseStackCursor.current & 1),
|
||||
workInProgress$77 = returnFiber;
|
||||
workInProgress$30 = returnFiber;
|
||||
do {
|
||||
var JSCompiler_temp;
|
||||
if ((JSCompiler_temp = 13 === workInProgress$77.tag)) {
|
||||
var nextState = workInProgress$77.memoizedState;
|
||||
if ((JSCompiler_temp = 13 === workInProgress$30.tag)) {
|
||||
var nextState = workInProgress$30.memoizedState;
|
||||
if (null !== nextState)
|
||||
JSCompiler_temp = null !== nextState.dehydrated ? !0 : !1;
|
||||
else {
|
||||
var props = workInProgress$77.memoizedProps;
|
||||
var props = workInProgress$30.memoizedProps;
|
||||
JSCompiler_temp =
|
||||
void 0 === props.fallback
|
||||
? !1
|
||||
|
@ -6447,17 +6454,17 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
}
|
||||
}
|
||||
if (JSCompiler_temp) {
|
||||
var wakeables = workInProgress$77.updateQueue;
|
||||
var wakeables = workInProgress$30.updateQueue;
|
||||
if (null === wakeables) {
|
||||
var updateQueue = new Set();
|
||||
updateQueue.add(wakeable);
|
||||
workInProgress$77.updateQueue = updateQueue;
|
||||
workInProgress$30.updateQueue = updateQueue;
|
||||
} else wakeables.add(wakeable);
|
||||
if (
|
||||
0 === (workInProgress$77.mode & 1) &&
|
||||
workInProgress$77 !== returnFiber
|
||||
0 === (workInProgress$30.mode & 1) &&
|
||||
workInProgress$30 !== returnFiber
|
||||
) {
|
||||
workInProgress$77.flags |= 128;
|
||||
workInProgress$30.flags |= 128;
|
||||
sourceFiber.flags |= 32768;
|
||||
sourceFiber.flags &= -10053;
|
||||
if (1 === sourceFiber.tag)
|
||||
|
@ -6490,12 +6497,12 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
);
|
||||
wakeable.then(ping, ping);
|
||||
}
|
||||
workInProgress$77.flags |= 16384;
|
||||
workInProgress$77.lanes = thrownValue;
|
||||
workInProgress$30.flags |= 16384;
|
||||
workInProgress$30.lanes = thrownValue;
|
||||
break a;
|
||||
}
|
||||
workInProgress$77 = workInProgress$77.return;
|
||||
} while (null !== workInProgress$77);
|
||||
workInProgress$30 = workInProgress$30.return;
|
||||
} while (null !== workInProgress$30);
|
||||
value = Error(
|
||||
(getComponentNameFromFiber(sourceFiber) || "A React component") +
|
||||
" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."
|
||||
|
@ -6504,47 +6511,47 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
5 !== workInProgressRootExitStatus &&
|
||||
(workInProgressRootExitStatus = 2);
|
||||
value = createCapturedValue(value, sourceFiber);
|
||||
workInProgress$77 = returnFiber;
|
||||
workInProgress$30 = returnFiber;
|
||||
do {
|
||||
switch (workInProgress$77.tag) {
|
||||
switch (workInProgress$30.tag) {
|
||||
case 3:
|
||||
root = value;
|
||||
workInProgress$77.flags |= 16384;
|
||||
workInProgress$30.flags |= 16384;
|
||||
thrownValue &= -thrownValue;
|
||||
workInProgress$77.lanes |= thrownValue;
|
||||
var update$78 = createRootErrorUpdate(
|
||||
workInProgress$77,
|
||||
workInProgress$30.lanes |= thrownValue;
|
||||
var update$31 = createRootErrorUpdate(
|
||||
workInProgress$30,
|
||||
root,
|
||||
thrownValue
|
||||
);
|
||||
enqueueCapturedUpdate(workInProgress$77, update$78);
|
||||
enqueueCapturedUpdate(workInProgress$30, update$31);
|
||||
break a;
|
||||
case 1:
|
||||
root = value;
|
||||
var ctor = workInProgress$77.type,
|
||||
instance = workInProgress$77.stateNode;
|
||||
var ctor = workInProgress$30.type,
|
||||
instance = workInProgress$30.stateNode;
|
||||
if (
|
||||
0 === (workInProgress$77.flags & 128) &&
|
||||
0 === (workInProgress$30.flags & 128) &&
|
||||
("function" === typeof ctor.getDerivedStateFromError ||
|
||||
(null !== instance &&
|
||||
"function" === typeof instance.componentDidCatch &&
|
||||
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
||||
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
||||
) {
|
||||
workInProgress$77.flags |= 16384;
|
||||
workInProgress$30.flags |= 16384;
|
||||
thrownValue &= -thrownValue;
|
||||
workInProgress$77.lanes |= thrownValue;
|
||||
var update$81 = createClassErrorUpdate(
|
||||
workInProgress$77,
|
||||
workInProgress$30.lanes |= thrownValue;
|
||||
var update$34 = createClassErrorUpdate(
|
||||
workInProgress$30,
|
||||
root,
|
||||
thrownValue
|
||||
);
|
||||
enqueueCapturedUpdate(workInProgress$77, update$81);
|
||||
enqueueCapturedUpdate(workInProgress$30, update$34);
|
||||
break a;
|
||||
}
|
||||
}
|
||||
workInProgress$77 = workInProgress$77.return;
|
||||
} while (null !== workInProgress$77);
|
||||
workInProgress$30 = workInProgress$30.return;
|
||||
} while (null !== workInProgress$30);
|
||||
}
|
||||
completeUnitOfWork(erroredWork);
|
||||
} catch (yetAnotherThrownValue) {
|
||||
|
@ -7547,7 +7554,7 @@ function createFiberFromTypeAndProps(
|
|||
break;
|
||||
case REACT_STRICT_MODE_TYPE:
|
||||
fiberTag = 8;
|
||||
mode |= 24;
|
||||
mode |= 8;
|
||||
break;
|
||||
case REACT_PROFILER_TYPE:
|
||||
return (
|
||||
|
@ -7772,7 +7779,7 @@ var roots = new Map(),
|
|||
devToolsConfig$jscomp$inline_942 = {
|
||||
findFiberByHostInstance: getInstanceFromInstance,
|
||||
bundleType: 0,
|
||||
version: "17.0.3-2d8d133e1",
|
||||
version: "17.0.3-0eea57724",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForViewTag: function() {
|
||||
|
@ -7798,6 +7805,7 @@ var internals$jscomp$inline_1180 = {
|
|||
overrideProps: null,
|
||||
overridePropsDeletePath: null,
|
||||
overridePropsRenamePath: null,
|
||||
setErrorHandler: null,
|
||||
setSuspenseHandler: null,
|
||||
scheduleUpdate: null,
|
||||
currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher,
|
||||
|
@ -7813,7 +7821,7 @@ var internals$jscomp$inline_1180 = {
|
|||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "17.0.3-2d8d133e1"
|
||||
reconcilerVersion: "17.0.3-0eea57724"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1181 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* @nolint
|
||||
* @providesModule ReactFabric-prod
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<ae6fe527bd96e6ad3ea1d713d5b1d2d6>>
|
||||
* @generated SignedSource<<abb0257485f1a54fe8d91eb371f94243>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
@ -2181,8 +2181,7 @@ function readContext(context) {
|
|||
lastContextDependency = context;
|
||||
currentlyRenderingFiber.dependencies = {
|
||||
lanes: 0,
|
||||
firstContext: context,
|
||||
responders: null
|
||||
firstContext: context
|
||||
};
|
||||
} else lastContextDependency = lastContextDependency.next = context;
|
||||
return value;
|
||||
|
@ -2223,7 +2222,9 @@ function enqueueUpdate(fiber, update) {
|
|||
var updateQueue = fiber.updateQueue;
|
||||
null !== updateQueue &&
|
||||
((updateQueue = updateQueue.shared),
|
||||
null !== workInProgressRoot && 0 !== (fiber.mode & 1)
|
||||
null !== workInProgressRoot &&
|
||||
0 !== (fiber.mode & 1) &&
|
||||
0 === (executionContext & 8)
|
||||
? ((fiber = updateQueue.interleaved),
|
||||
null === fiber
|
||||
? ((update.next = update),
|
||||
|
@ -3781,7 +3782,11 @@ function dispatchAction(fiber, queue, action) {
|
|||
: ((update.next = lane.next), (lane.next = update)),
|
||||
(queue.pending = update);
|
||||
else {
|
||||
if (null !== workInProgressRoot && 0 !== (fiber.mode & 1)) {
|
||||
if (
|
||||
null !== workInProgressRoot &&
|
||||
0 !== (fiber.mode & 1) &&
|
||||
0 === (executionContext & 8)
|
||||
) {
|
||||
var interleaved = queue.interleaved;
|
||||
null === interleaved
|
||||
? ((update.next = update),
|
||||
|
@ -4018,8 +4023,82 @@ var ContextOnlyDispatcher = {
|
|||
return rerenderReducer(basicStateReducer)[0];
|
||||
},
|
||||
unstable_isNewReconciler: !1
|
||||
},
|
||||
ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
||||
};
|
||||
function createCapturedValue(value, source) {
|
||||
try {
|
||||
var info = "",
|
||||
node = source;
|
||||
do (info += describeFiber(node)), (node = node.return);
|
||||
while (node);
|
||||
var JSCompiler_inline_result = info;
|
||||
} catch (x) {
|
||||
JSCompiler_inline_result =
|
||||
"\nError generating stack: " + x.message + "\n" + x.stack;
|
||||
}
|
||||
return { value: value, source: source, stack: JSCompiler_inline_result };
|
||||
}
|
||||
if (
|
||||
"function" !==
|
||||
typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog
|
||||
)
|
||||
throw Error(
|
||||
"Expected ReactFiberErrorDialog.showErrorDialog to be a function."
|
||||
);
|
||||
function logCapturedError(boundary, errorInfo) {
|
||||
try {
|
||||
!1 !==
|
||||
ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog({
|
||||
componentStack: null !== errorInfo.stack ? errorInfo.stack : "",
|
||||
error: errorInfo.value,
|
||||
errorBoundary:
|
||||
null !== boundary && 1 === boundary.tag ? boundary.stateNode : null
|
||||
}) && console.error(errorInfo.value);
|
||||
} catch (e) {
|
||||
setTimeout(function() {
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
}
|
||||
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
||||
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
lane.payload = { element: null };
|
||||
var error = errorInfo.value;
|
||||
lane.callback = function() {
|
||||
hasUncaughtError || ((hasUncaughtError = !0), (firstUncaughtError = error));
|
||||
logCapturedError(fiber, errorInfo);
|
||||
};
|
||||
return lane;
|
||||
}
|
||||
function createClassErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
||||
if ("function" === typeof getDerivedStateFromError) {
|
||||
var error = errorInfo.value;
|
||||
lane.payload = function() {
|
||||
logCapturedError(fiber, errorInfo);
|
||||
return getDerivedStateFromError(error);
|
||||
};
|
||||
}
|
||||
var inst = fiber.stateNode;
|
||||
null !== inst &&
|
||||
"function" === typeof inst.componentDidCatch &&
|
||||
(lane.callback = function() {
|
||||
"function" !== typeof getDerivedStateFromError &&
|
||||
(null === legacyErrorBoundariesThatAlreadyFailed
|
||||
? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))
|
||||
: legacyErrorBoundariesThatAlreadyFailed.add(this),
|
||||
logCapturedError(fiber, errorInfo));
|
||||
var stack = errorInfo.stack;
|
||||
this.componentDidCatch(errorInfo.value, {
|
||||
componentStack: null !== stack ? stack : ""
|
||||
});
|
||||
});
|
||||
return lane;
|
||||
}
|
||||
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
||||
didReceiveUpdate = !1;
|
||||
function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
|
||||
workInProgress.child =
|
||||
|
@ -5037,14 +5116,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|||
break;
|
||||
case "collapsed":
|
||||
lastTailNode = renderState.tail;
|
||||
for (var lastTailNode$64 = null; null !== lastTailNode; )
|
||||
null !== lastTailNode.alternate && (lastTailNode$64 = lastTailNode),
|
||||
for (var lastTailNode$69 = null; null !== lastTailNode; )
|
||||
null !== lastTailNode.alternate && (lastTailNode$69 = lastTailNode),
|
||||
(lastTailNode = lastTailNode.sibling);
|
||||
null === lastTailNode$64
|
||||
null === lastTailNode$69
|
||||
? hasRenderedATailFallback || null === renderState.tail
|
||||
? (renderState.tail = null)
|
||||
: (renderState.tail.sibling = null)
|
||||
: (lastTailNode$64.sibling = null);
|
||||
: (lastTailNode$69.sibling = null);
|
||||
}
|
||||
}
|
||||
function bubbleProperties(completedWork) {
|
||||
|
@ -5054,19 +5133,19 @@ function bubbleProperties(completedWork) {
|
|||
newChildLanes = 0,
|
||||
subtreeFlags = 0;
|
||||
if (didBailout)
|
||||
for (var child$65 = completedWork.child; null !== child$65; )
|
||||
(newChildLanes |= child$65.lanes | child$65.childLanes),
|
||||
(subtreeFlags |= child$65.subtreeFlags & 1835008),
|
||||
(subtreeFlags |= child$65.flags & 1835008),
|
||||
(child$65.return = completedWork),
|
||||
(child$65 = child$65.sibling);
|
||||
for (var child$70 = completedWork.child; null !== child$70; )
|
||||
(newChildLanes |= child$70.lanes | child$70.childLanes),
|
||||
(subtreeFlags |= child$70.subtreeFlags & 1835008),
|
||||
(subtreeFlags |= child$70.flags & 1835008),
|
||||
(child$70.return = completedWork),
|
||||
(child$70 = child$70.sibling);
|
||||
else
|
||||
for (child$65 = completedWork.child; null !== child$65; )
|
||||
(newChildLanes |= child$65.lanes | child$65.childLanes),
|
||||
(subtreeFlags |= child$65.subtreeFlags),
|
||||
(subtreeFlags |= child$65.flags),
|
||||
(child$65.return = completedWork),
|
||||
(child$65 = child$65.sibling);
|
||||
for (child$70 = completedWork.child; null !== child$70; )
|
||||
(newChildLanes |= child$70.lanes | child$70.childLanes),
|
||||
(subtreeFlags |= child$70.subtreeFlags),
|
||||
(subtreeFlags |= child$70.flags),
|
||||
(child$70.return = completedWork),
|
||||
(child$70 = child$70.sibling);
|
||||
completedWork.subtreeFlags |= subtreeFlags;
|
||||
completedWork.childLanes = newChildLanes;
|
||||
return didBailout;
|
||||
|
@ -5425,80 +5504,6 @@ function unwindWork(workInProgress) {
|
|||
return null;
|
||||
}
|
||||
}
|
||||
function createCapturedValue(value, source) {
|
||||
try {
|
||||
var info = "",
|
||||
node = source;
|
||||
do (info += describeFiber(node)), (node = node.return);
|
||||
while (node);
|
||||
var JSCompiler_inline_result = info;
|
||||
} catch (x) {
|
||||
JSCompiler_inline_result =
|
||||
"\nError generating stack: " + x.message + "\n" + x.stack;
|
||||
}
|
||||
return { value: value, source: source, stack: JSCompiler_inline_result };
|
||||
}
|
||||
if (
|
||||
"function" !==
|
||||
typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog
|
||||
)
|
||||
throw Error(
|
||||
"Expected ReactFiberErrorDialog.showErrorDialog to be a function."
|
||||
);
|
||||
function logCapturedError(boundary, errorInfo) {
|
||||
try {
|
||||
!1 !==
|
||||
ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog({
|
||||
componentStack: null !== errorInfo.stack ? errorInfo.stack : "",
|
||||
error: errorInfo.value,
|
||||
errorBoundary:
|
||||
null !== boundary && 1 === boundary.tag ? boundary.stateNode : null
|
||||
}) && console.error(errorInfo.value);
|
||||
} catch (e) {
|
||||
setTimeout(function() {
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
}
|
||||
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
||||
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
lane.payload = { element: null };
|
||||
var error = errorInfo.value;
|
||||
lane.callback = function() {
|
||||
hasUncaughtError || ((hasUncaughtError = !0), (firstUncaughtError = error));
|
||||
logCapturedError(fiber, errorInfo);
|
||||
};
|
||||
return lane;
|
||||
}
|
||||
function createClassErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
||||
if ("function" === typeof getDerivedStateFromError) {
|
||||
var error = errorInfo.value;
|
||||
lane.payload = function() {
|
||||
logCapturedError(fiber, errorInfo);
|
||||
return getDerivedStateFromError(error);
|
||||
};
|
||||
}
|
||||
var inst = fiber.stateNode;
|
||||
null !== inst &&
|
||||
"function" === typeof inst.componentDidCatch &&
|
||||
(lane.callback = function() {
|
||||
"function" !== typeof getDerivedStateFromError &&
|
||||
(null === legacyErrorBoundariesThatAlreadyFailed
|
||||
? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))
|
||||
: legacyErrorBoundariesThatAlreadyFailed.add(this),
|
||||
logCapturedError(fiber, errorInfo));
|
||||
var stack = errorInfo.stack;
|
||||
this.componentDidCatch(errorInfo.value, {
|
||||
componentStack: null !== stack ? stack : ""
|
||||
});
|
||||
});
|
||||
return lane;
|
||||
}
|
||||
var PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set,
|
||||
nextEffect = null;
|
||||
function safelyDetachRef(current, nearestMountedAncestor) {
|
||||
|
@ -5997,6 +6002,8 @@ function requestEventTime() {
|
|||
}
|
||||
function requestUpdateLane(fiber) {
|
||||
if (0 === (fiber.mode & 1)) return 1;
|
||||
if (0 !== (executionContext & 8) && 0 !== workInProgressRootRenderLanes)
|
||||
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
|
||||
if (0 !== ReactCurrentBatchConfig.transition)
|
||||
return (
|
||||
0 === currentEventTransitionLane &&
|
||||
|
@ -6020,7 +6027,7 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|||
if (null === root) return null;
|
||||
markRootUpdated(root, lane, eventTime);
|
||||
root === workInProgressRoot &&
|
||||
((workInProgressRootUpdatedLanes |= lane),
|
||||
(0 === (executionContext & 8) && (workInProgressRootUpdatedLanes |= lane),
|
||||
4 === workInProgressRootExitStatus &&
|
||||
markRootSuspended$1(root, workInProgressRootRenderLanes));
|
||||
1 === lane
|
||||
|
@ -6422,15 +6429,15 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
}
|
||||
var hasInvisibleParentBoundary =
|
||||
0 !== (suspenseStackCursor.current & 1),
|
||||
workInProgress$77 = returnFiber;
|
||||
workInProgress$30 = returnFiber;
|
||||
do {
|
||||
var JSCompiler_temp;
|
||||
if ((JSCompiler_temp = 13 === workInProgress$77.tag)) {
|
||||
var nextState = workInProgress$77.memoizedState;
|
||||
if ((JSCompiler_temp = 13 === workInProgress$30.tag)) {
|
||||
var nextState = workInProgress$30.memoizedState;
|
||||
if (null !== nextState)
|
||||
JSCompiler_temp = null !== nextState.dehydrated ? !0 : !1;
|
||||
else {
|
||||
var props = workInProgress$77.memoizedProps;
|
||||
var props = workInProgress$30.memoizedProps;
|
||||
JSCompiler_temp =
|
||||
void 0 === props.fallback
|
||||
? !1
|
||||
|
@ -6442,17 +6449,17 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
}
|
||||
}
|
||||
if (JSCompiler_temp) {
|
||||
var wakeables = workInProgress$77.updateQueue;
|
||||
var wakeables = workInProgress$30.updateQueue;
|
||||
if (null === wakeables) {
|
||||
var updateQueue = new Set();
|
||||
updateQueue.add(wakeable);
|
||||
workInProgress$77.updateQueue = updateQueue;
|
||||
workInProgress$30.updateQueue = updateQueue;
|
||||
} else wakeables.add(wakeable);
|
||||
if (
|
||||
0 === (workInProgress$77.mode & 1) &&
|
||||
workInProgress$77 !== returnFiber
|
||||
0 === (workInProgress$30.mode & 1) &&
|
||||
workInProgress$30 !== returnFiber
|
||||
) {
|
||||
workInProgress$77.flags |= 128;
|
||||
workInProgress$30.flags |= 128;
|
||||
sourceFiber.flags |= 32768;
|
||||
sourceFiber.flags &= -10053;
|
||||
if (1 === sourceFiber.tag)
|
||||
|
@ -6485,12 +6492,12 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
);
|
||||
wakeable.then(ping, ping);
|
||||
}
|
||||
workInProgress$77.flags |= 16384;
|
||||
workInProgress$77.lanes = thrownValue;
|
||||
workInProgress$30.flags |= 16384;
|
||||
workInProgress$30.lanes = thrownValue;
|
||||
break a;
|
||||
}
|
||||
workInProgress$77 = workInProgress$77.return;
|
||||
} while (null !== workInProgress$77);
|
||||
workInProgress$30 = workInProgress$30.return;
|
||||
} while (null !== workInProgress$30);
|
||||
value = Error(
|
||||
(getComponentNameFromFiber(sourceFiber) || "A React component") +
|
||||
" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."
|
||||
|
@ -6499,47 +6506,47 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
5 !== workInProgressRootExitStatus &&
|
||||
(workInProgressRootExitStatus = 2);
|
||||
value = createCapturedValue(value, sourceFiber);
|
||||
workInProgress$77 = returnFiber;
|
||||
workInProgress$30 = returnFiber;
|
||||
do {
|
||||
switch (workInProgress$77.tag) {
|
||||
switch (workInProgress$30.tag) {
|
||||
case 3:
|
||||
root = value;
|
||||
workInProgress$77.flags |= 16384;
|
||||
workInProgress$30.flags |= 16384;
|
||||
thrownValue &= -thrownValue;
|
||||
workInProgress$77.lanes |= thrownValue;
|
||||
var update$78 = createRootErrorUpdate(
|
||||
workInProgress$77,
|
||||
workInProgress$30.lanes |= thrownValue;
|
||||
var update$31 = createRootErrorUpdate(
|
||||
workInProgress$30,
|
||||
root,
|
||||
thrownValue
|
||||
);
|
||||
enqueueCapturedUpdate(workInProgress$77, update$78);
|
||||
enqueueCapturedUpdate(workInProgress$30, update$31);
|
||||
break a;
|
||||
case 1:
|
||||
root = value;
|
||||
var ctor = workInProgress$77.type,
|
||||
instance = workInProgress$77.stateNode;
|
||||
var ctor = workInProgress$30.type,
|
||||
instance = workInProgress$30.stateNode;
|
||||
if (
|
||||
0 === (workInProgress$77.flags & 128) &&
|
||||
0 === (workInProgress$30.flags & 128) &&
|
||||
("function" === typeof ctor.getDerivedStateFromError ||
|
||||
(null !== instance &&
|
||||
"function" === typeof instance.componentDidCatch &&
|
||||
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
||||
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
||||
) {
|
||||
workInProgress$77.flags |= 16384;
|
||||
workInProgress$30.flags |= 16384;
|
||||
thrownValue &= -thrownValue;
|
||||
workInProgress$77.lanes |= thrownValue;
|
||||
var update$81 = createClassErrorUpdate(
|
||||
workInProgress$77,
|
||||
workInProgress$30.lanes |= thrownValue;
|
||||
var update$34 = createClassErrorUpdate(
|
||||
workInProgress$30,
|
||||
root,
|
||||
thrownValue
|
||||
);
|
||||
enqueueCapturedUpdate(workInProgress$77, update$81);
|
||||
enqueueCapturedUpdate(workInProgress$30, update$34);
|
||||
break a;
|
||||
}
|
||||
}
|
||||
workInProgress$77 = workInProgress$77.return;
|
||||
} while (null !== workInProgress$77);
|
||||
workInProgress$30 = workInProgress$30.return;
|
||||
} while (null !== workInProgress$30);
|
||||
}
|
||||
completeUnitOfWork(erroredWork);
|
||||
} catch (yetAnotherThrownValue) {
|
||||
|
@ -7542,7 +7549,7 @@ function createFiberFromTypeAndProps(
|
|||
break;
|
||||
case REACT_STRICT_MODE_TYPE:
|
||||
fiberTag = 8;
|
||||
mode |= 24;
|
||||
mode |= 8;
|
||||
break;
|
||||
case REACT_PROFILER_TYPE:
|
||||
return (
|
||||
|
@ -7767,7 +7774,7 @@ var roots = new Map(),
|
|||
devToolsConfig$jscomp$inline_942 = {
|
||||
findFiberByHostInstance: getInstanceFromInstance,
|
||||
bundleType: 0,
|
||||
version: "17.0.3-experimental-2d8d133e1",
|
||||
version: "17.0.3-experimental-0eea57724",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForViewTag: function() {
|
||||
|
@ -7793,6 +7800,7 @@ var internals$jscomp$inline_1180 = {
|
|||
overrideProps: null,
|
||||
overridePropsDeletePath: null,
|
||||
overridePropsRenamePath: null,
|
||||
setErrorHandler: null,
|
||||
setSuspenseHandler: null,
|
||||
scheduleUpdate: null,
|
||||
currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher,
|
||||
|
@ -7808,7 +7816,7 @@ var internals$jscomp$inline_1180 = {
|
|||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "17.0.3-experimental-2d8d133e1"
|
||||
reconcilerVersion: "17.0.3-experimental-0eea57724"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1181 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -7,7 +7,7 @@
|
|||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<b2116bc91a7766778320a4cdc20a0e6e>>
|
||||
* @generated SignedSource<<1ef9c6e9d7c67c977fec9c16bec4cf17>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
@ -2205,8 +2205,7 @@ function readContext(context) {
|
|||
lastContextDependency = context;
|
||||
currentlyRenderingFiber.dependencies = {
|
||||
lanes: 0,
|
||||
firstContext: context,
|
||||
responders: null
|
||||
firstContext: context
|
||||
};
|
||||
} else lastContextDependency = lastContextDependency.next = context;
|
||||
return value;
|
||||
|
@ -2247,7 +2246,9 @@ function enqueueUpdate(fiber, update) {
|
|||
var updateQueue = fiber.updateQueue;
|
||||
null !== updateQueue &&
|
||||
((updateQueue = updateQueue.shared),
|
||||
null !== workInProgressRoot && 0 !== (fiber.mode & 1)
|
||||
null !== workInProgressRoot &&
|
||||
0 !== (fiber.mode & 1) &&
|
||||
0 === (executionContext & 8)
|
||||
? ((fiber = updateQueue.interleaved),
|
||||
null === fiber
|
||||
? ((update.next = update),
|
||||
|
@ -3805,7 +3806,11 @@ function dispatchAction(fiber, queue, action) {
|
|||
: ((update.next = lane.next), (lane.next = update)),
|
||||
(queue.pending = update);
|
||||
else {
|
||||
if (null !== workInProgressRoot && 0 !== (fiber.mode & 1)) {
|
||||
if (
|
||||
null !== workInProgressRoot &&
|
||||
0 !== (fiber.mode & 1) &&
|
||||
0 === (executionContext & 8)
|
||||
) {
|
||||
var interleaved = queue.interleaved;
|
||||
null === interleaved
|
||||
? ((update.next = update),
|
||||
|
@ -4042,8 +4047,76 @@ var ContextOnlyDispatcher = {
|
|||
return rerenderReducer(basicStateReducer)[0];
|
||||
},
|
||||
unstable_isNewReconciler: !1
|
||||
},
|
||||
ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
||||
};
|
||||
function createCapturedValue(value, source) {
|
||||
return {
|
||||
value: value,
|
||||
source: source,
|
||||
stack: getStackByFiberInDevAndProd(source)
|
||||
};
|
||||
}
|
||||
if (
|
||||
"function" !==
|
||||
typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog
|
||||
)
|
||||
throw Error(
|
||||
"Expected ReactFiberErrorDialog.showErrorDialog to be a function."
|
||||
);
|
||||
function logCapturedError(boundary, errorInfo) {
|
||||
try {
|
||||
!1 !==
|
||||
ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog({
|
||||
componentStack: null !== errorInfo.stack ? errorInfo.stack : "",
|
||||
error: errorInfo.value,
|
||||
errorBoundary:
|
||||
null !== boundary && 1 === boundary.tag ? boundary.stateNode : null
|
||||
}) && console.error(errorInfo.value);
|
||||
} catch (e) {
|
||||
setTimeout(function() {
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
}
|
||||
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
||||
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
lane.payload = { element: null };
|
||||
var error = errorInfo.value;
|
||||
lane.callback = function() {
|
||||
hasUncaughtError || ((hasUncaughtError = !0), (firstUncaughtError = error));
|
||||
logCapturedError(fiber, errorInfo);
|
||||
};
|
||||
return lane;
|
||||
}
|
||||
function createClassErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
||||
if ("function" === typeof getDerivedStateFromError) {
|
||||
var error = errorInfo.value;
|
||||
lane.payload = function() {
|
||||
logCapturedError(fiber, errorInfo);
|
||||
return getDerivedStateFromError(error);
|
||||
};
|
||||
}
|
||||
var inst = fiber.stateNode;
|
||||
null !== inst &&
|
||||
"function" === typeof inst.componentDidCatch &&
|
||||
(lane.callback = function() {
|
||||
"function" !== typeof getDerivedStateFromError &&
|
||||
(null === legacyErrorBoundariesThatAlreadyFailed
|
||||
? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))
|
||||
: legacyErrorBoundariesThatAlreadyFailed.add(this),
|
||||
logCapturedError(fiber, errorInfo));
|
||||
var stack = errorInfo.stack;
|
||||
this.componentDidCatch(errorInfo.value, {
|
||||
componentStack: null !== stack ? stack : ""
|
||||
});
|
||||
});
|
||||
return lane;
|
||||
}
|
||||
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
||||
didReceiveUpdate = !1;
|
||||
function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
|
||||
workInProgress.child =
|
||||
|
@ -4902,14 +4975,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|||
break;
|
||||
case "collapsed":
|
||||
lastTailNode = renderState.tail;
|
||||
for (var lastTailNode$64 = null; null !== lastTailNode; )
|
||||
null !== lastTailNode.alternate && (lastTailNode$64 = lastTailNode),
|
||||
for (var lastTailNode$69 = null; null !== lastTailNode; )
|
||||
null !== lastTailNode.alternate && (lastTailNode$69 = lastTailNode),
|
||||
(lastTailNode = lastTailNode.sibling);
|
||||
null === lastTailNode$64
|
||||
null === lastTailNode$69
|
||||
? hasRenderedATailFallback || null === renderState.tail
|
||||
? (renderState.tail = null)
|
||||
: (renderState.tail.sibling = null)
|
||||
: (lastTailNode$64.sibling = null);
|
||||
: (lastTailNode$69.sibling = null);
|
||||
}
|
||||
}
|
||||
function bubbleProperties(completedWork) {
|
||||
|
@ -4919,19 +4992,19 @@ function bubbleProperties(completedWork) {
|
|||
newChildLanes = 0,
|
||||
subtreeFlags = 0;
|
||||
if (didBailout)
|
||||
for (var child$65 = completedWork.child; null !== child$65; )
|
||||
(newChildLanes |= child$65.lanes | child$65.childLanes),
|
||||
(subtreeFlags |= child$65.subtreeFlags & 1835008),
|
||||
(subtreeFlags |= child$65.flags & 1835008),
|
||||
(child$65.return = completedWork),
|
||||
(child$65 = child$65.sibling);
|
||||
for (var child$70 = completedWork.child; null !== child$70; )
|
||||
(newChildLanes |= child$70.lanes | child$70.childLanes),
|
||||
(subtreeFlags |= child$70.subtreeFlags & 1835008),
|
||||
(subtreeFlags |= child$70.flags & 1835008),
|
||||
(child$70.return = completedWork),
|
||||
(child$70 = child$70.sibling);
|
||||
else
|
||||
for (child$65 = completedWork.child; null !== child$65; )
|
||||
(newChildLanes |= child$65.lanes | child$65.childLanes),
|
||||
(subtreeFlags |= child$65.subtreeFlags),
|
||||
(subtreeFlags |= child$65.flags),
|
||||
(child$65.return = completedWork),
|
||||
(child$65 = child$65.sibling);
|
||||
for (child$70 = completedWork.child; null !== child$70; )
|
||||
(newChildLanes |= child$70.lanes | child$70.childLanes),
|
||||
(subtreeFlags |= child$70.subtreeFlags),
|
||||
(subtreeFlags |= child$70.flags),
|
||||
(child$70.return = completedWork),
|
||||
(child$70 = child$70.sibling);
|
||||
completedWork.subtreeFlags |= subtreeFlags;
|
||||
completedWork.childLanes = newChildLanes;
|
||||
return didBailout;
|
||||
|
@ -5295,74 +5368,6 @@ function unwindWork(workInProgress) {
|
|||
return null;
|
||||
}
|
||||
}
|
||||
function createCapturedValue(value, source) {
|
||||
return {
|
||||
value: value,
|
||||
source: source,
|
||||
stack: getStackByFiberInDevAndProd(source)
|
||||
};
|
||||
}
|
||||
if (
|
||||
"function" !==
|
||||
typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog
|
||||
)
|
||||
throw Error(
|
||||
"Expected ReactFiberErrorDialog.showErrorDialog to be a function."
|
||||
);
|
||||
function logCapturedError(boundary, errorInfo) {
|
||||
try {
|
||||
!1 !==
|
||||
ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog({
|
||||
componentStack: null !== errorInfo.stack ? errorInfo.stack : "",
|
||||
error: errorInfo.value,
|
||||
errorBoundary:
|
||||
null !== boundary && 1 === boundary.tag ? boundary.stateNode : null
|
||||
}) && console.error(errorInfo.value);
|
||||
} catch (e) {
|
||||
setTimeout(function() {
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
}
|
||||
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
||||
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
lane.payload = { element: null };
|
||||
var error = errorInfo.value;
|
||||
lane.callback = function() {
|
||||
hasUncaughtError || ((hasUncaughtError = !0), (firstUncaughtError = error));
|
||||
logCapturedError(fiber, errorInfo);
|
||||
};
|
||||
return lane;
|
||||
}
|
||||
function createClassErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
||||
if ("function" === typeof getDerivedStateFromError) {
|
||||
var error = errorInfo.value;
|
||||
lane.payload = function() {
|
||||
logCapturedError(fiber, errorInfo);
|
||||
return getDerivedStateFromError(error);
|
||||
};
|
||||
}
|
||||
var inst = fiber.stateNode;
|
||||
null !== inst &&
|
||||
"function" === typeof inst.componentDidCatch &&
|
||||
(lane.callback = function() {
|
||||
"function" !== typeof getDerivedStateFromError &&
|
||||
(null === legacyErrorBoundariesThatAlreadyFailed
|
||||
? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))
|
||||
: legacyErrorBoundariesThatAlreadyFailed.add(this),
|
||||
logCapturedError(fiber, errorInfo));
|
||||
var stack = errorInfo.stack;
|
||||
this.componentDidCatch(errorInfo.value, {
|
||||
componentStack: null !== stack ? stack : ""
|
||||
});
|
||||
});
|
||||
return lane;
|
||||
}
|
||||
var PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set,
|
||||
nextEffect = null;
|
||||
function safelyDetachRef(current, nearestMountedAncestor) {
|
||||
|
@ -6209,6 +6214,8 @@ function requestEventTime() {
|
|||
}
|
||||
function requestUpdateLane(fiber) {
|
||||
if (0 === (fiber.mode & 1)) return 1;
|
||||
if (0 !== (executionContext & 8) && 0 !== workInProgressRootRenderLanes)
|
||||
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
|
||||
if (0 !== ReactCurrentBatchConfig.transition)
|
||||
return (
|
||||
0 === currentEventTransitionLane &&
|
||||
|
@ -6232,7 +6239,7 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|||
if (null === root) return null;
|
||||
markRootUpdated(root, lane, eventTime);
|
||||
root === workInProgressRoot &&
|
||||
((workInProgressRootUpdatedLanes |= lane),
|
||||
(0 === (executionContext & 8) && (workInProgressRootUpdatedLanes |= lane),
|
||||
4 === workInProgressRootExitStatus &&
|
||||
markRootSuspended$1(root, workInProgressRootRenderLanes));
|
||||
1 === lane
|
||||
|
@ -6638,15 +6645,15 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
}
|
||||
var hasInvisibleParentBoundary =
|
||||
0 !== (suspenseStackCursor.current & 1),
|
||||
workInProgress$77 = returnFiber;
|
||||
workInProgress$32 = returnFiber;
|
||||
do {
|
||||
var JSCompiler_temp;
|
||||
if ((JSCompiler_temp = 13 === workInProgress$77.tag)) {
|
||||
var nextState = workInProgress$77.memoizedState;
|
||||
if ((JSCompiler_temp = 13 === workInProgress$32.tag)) {
|
||||
var nextState = workInProgress$32.memoizedState;
|
||||
if (null !== nextState)
|
||||
JSCompiler_temp = null !== nextState.dehydrated ? !0 : !1;
|
||||
else {
|
||||
var props = workInProgress$77.memoizedProps;
|
||||
var props = workInProgress$32.memoizedProps;
|
||||
JSCompiler_temp =
|
||||
void 0 === props.fallback
|
||||
? !1
|
||||
|
@ -6658,17 +6665,17 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
}
|
||||
}
|
||||
if (JSCompiler_temp) {
|
||||
var wakeables = workInProgress$77.updateQueue;
|
||||
var wakeables = workInProgress$32.updateQueue;
|
||||
if (null === wakeables) {
|
||||
var updateQueue = new Set();
|
||||
updateQueue.add(wakeable);
|
||||
workInProgress$77.updateQueue = updateQueue;
|
||||
workInProgress$32.updateQueue = updateQueue;
|
||||
} else wakeables.add(wakeable);
|
||||
if (
|
||||
0 === (workInProgress$77.mode & 1) &&
|
||||
workInProgress$77 !== returnFiber
|
||||
0 === (workInProgress$32.mode & 1) &&
|
||||
workInProgress$32 !== returnFiber
|
||||
) {
|
||||
workInProgress$77.flags |= 128;
|
||||
workInProgress$32.flags |= 128;
|
||||
sourceFiber.flags |= 32768;
|
||||
sourceFiber.flags &= -10053;
|
||||
if (1 === sourceFiber.tag)
|
||||
|
@ -6701,12 +6708,12 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
);
|
||||
wakeable.then(ping, ping);
|
||||
}
|
||||
workInProgress$77.flags |= 16384;
|
||||
workInProgress$77.lanes = thrownValue;
|
||||
workInProgress$32.flags |= 16384;
|
||||
workInProgress$32.lanes = thrownValue;
|
||||
break a;
|
||||
}
|
||||
workInProgress$77 = workInProgress$77.return;
|
||||
} while (null !== workInProgress$77);
|
||||
workInProgress$32 = workInProgress$32.return;
|
||||
} while (null !== workInProgress$32);
|
||||
value = Error(
|
||||
(getComponentNameFromFiber(sourceFiber) || "A React component") +
|
||||
" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."
|
||||
|
@ -6715,47 +6722,47 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
5 !== workInProgressRootExitStatus &&
|
||||
(workInProgressRootExitStatus = 2);
|
||||
value = createCapturedValue(value, sourceFiber);
|
||||
workInProgress$77 = returnFiber;
|
||||
workInProgress$32 = returnFiber;
|
||||
do {
|
||||
switch (workInProgress$77.tag) {
|
||||
switch (workInProgress$32.tag) {
|
||||
case 3:
|
||||
root = value;
|
||||
workInProgress$77.flags |= 16384;
|
||||
workInProgress$32.flags |= 16384;
|
||||
thrownValue &= -thrownValue;
|
||||
workInProgress$77.lanes |= thrownValue;
|
||||
var update$78 = createRootErrorUpdate(
|
||||
workInProgress$77,
|
||||
workInProgress$32.lanes |= thrownValue;
|
||||
var update$33 = createRootErrorUpdate(
|
||||
workInProgress$32,
|
||||
root,
|
||||
thrownValue
|
||||
);
|
||||
enqueueCapturedUpdate(workInProgress$77, update$78);
|
||||
enqueueCapturedUpdate(workInProgress$32, update$33);
|
||||
break a;
|
||||
case 1:
|
||||
root = value;
|
||||
var ctor = workInProgress$77.type,
|
||||
instance = workInProgress$77.stateNode;
|
||||
var ctor = workInProgress$32.type,
|
||||
instance = workInProgress$32.stateNode;
|
||||
if (
|
||||
0 === (workInProgress$77.flags & 128) &&
|
||||
0 === (workInProgress$32.flags & 128) &&
|
||||
("function" === typeof ctor.getDerivedStateFromError ||
|
||||
(null !== instance &&
|
||||
"function" === typeof instance.componentDidCatch &&
|
||||
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
||||
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
||||
) {
|
||||
workInProgress$77.flags |= 16384;
|
||||
workInProgress$32.flags |= 16384;
|
||||
thrownValue &= -thrownValue;
|
||||
workInProgress$77.lanes |= thrownValue;
|
||||
var update$81 = createClassErrorUpdate(
|
||||
workInProgress$77,
|
||||
workInProgress$32.lanes |= thrownValue;
|
||||
var update$36 = createClassErrorUpdate(
|
||||
workInProgress$32,
|
||||
root,
|
||||
thrownValue
|
||||
);
|
||||
enqueueCapturedUpdate(workInProgress$77, update$81);
|
||||
enqueueCapturedUpdate(workInProgress$32, update$36);
|
||||
break a;
|
||||
}
|
||||
}
|
||||
workInProgress$77 = workInProgress$77.return;
|
||||
} while (null !== workInProgress$77);
|
||||
workInProgress$32 = workInProgress$32.return;
|
||||
} while (null !== workInProgress$32);
|
||||
}
|
||||
completeUnitOfWork(erroredWork);
|
||||
} catch (yetAnotherThrownValue) {
|
||||
|
@ -7758,7 +7765,7 @@ function createFiberFromTypeAndProps(
|
|||
break;
|
||||
case REACT_STRICT_MODE_TYPE:
|
||||
fiberTag = 8;
|
||||
mode |= 24;
|
||||
mode |= 8;
|
||||
break;
|
||||
case REACT_PROFILER_TYPE:
|
||||
return (
|
||||
|
@ -7990,7 +7997,7 @@ var roots = new Map(),
|
|||
devToolsConfig$jscomp$inline_986 = {
|
||||
findFiberByHostInstance: getInstanceFromTag,
|
||||
bundleType: 0,
|
||||
version: "17.0.3-2d8d133e1",
|
||||
version: "17.0.3-0eea57724",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForViewTag: function() {
|
||||
|
@ -8016,6 +8023,7 @@ var internals$jscomp$inline_1243 = {
|
|||
overrideProps: null,
|
||||
overridePropsDeletePath: null,
|
||||
overridePropsRenamePath: null,
|
||||
setErrorHandler: null,
|
||||
setSuspenseHandler: null,
|
||||
scheduleUpdate: null,
|
||||
currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher,
|
||||
|
@ -8031,7 +8039,7 @@ var internals$jscomp$inline_1243 = {
|
|||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "17.0.3-2d8d133e1"
|
||||
reconcilerVersion: "17.0.3-0eea57724"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1244 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* @nolint
|
||||
* @providesModule ReactNativeRenderer-prod
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<8960cfed6037c61be089c6fd4cf802ce>>
|
||||
* @generated SignedSource<<7b8ef8f3a7db971deff747e55ae112f9>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
@ -2204,8 +2204,7 @@ function readContext(context) {
|
|||
lastContextDependency = context;
|
||||
currentlyRenderingFiber.dependencies = {
|
||||
lanes: 0,
|
||||
firstContext: context,
|
||||
responders: null
|
||||
firstContext: context
|
||||
};
|
||||
} else lastContextDependency = lastContextDependency.next = context;
|
||||
return value;
|
||||
|
@ -2246,7 +2245,9 @@ function enqueueUpdate(fiber, update) {
|
|||
var updateQueue = fiber.updateQueue;
|
||||
null !== updateQueue &&
|
||||
((updateQueue = updateQueue.shared),
|
||||
null !== workInProgressRoot && 0 !== (fiber.mode & 1)
|
||||
null !== workInProgressRoot &&
|
||||
0 !== (fiber.mode & 1) &&
|
||||
0 === (executionContext & 8)
|
||||
? ((fiber = updateQueue.interleaved),
|
||||
null === fiber
|
||||
? ((update.next = update),
|
||||
|
@ -3804,7 +3805,11 @@ function dispatchAction(fiber, queue, action) {
|
|||
: ((update.next = lane.next), (lane.next = update)),
|
||||
(queue.pending = update);
|
||||
else {
|
||||
if (null !== workInProgressRoot && 0 !== (fiber.mode & 1)) {
|
||||
if (
|
||||
null !== workInProgressRoot &&
|
||||
0 !== (fiber.mode & 1) &&
|
||||
0 === (executionContext & 8)
|
||||
) {
|
||||
var interleaved = queue.interleaved;
|
||||
null === interleaved
|
||||
? ((update.next = update),
|
||||
|
@ -4041,8 +4046,76 @@ var ContextOnlyDispatcher = {
|
|||
return rerenderReducer(basicStateReducer)[0];
|
||||
},
|
||||
unstable_isNewReconciler: !1
|
||||
},
|
||||
ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
||||
};
|
||||
function createCapturedValue(value, source) {
|
||||
return {
|
||||
value: value,
|
||||
source: source,
|
||||
stack: getStackByFiberInDevAndProd(source)
|
||||
};
|
||||
}
|
||||
if (
|
||||
"function" !==
|
||||
typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog
|
||||
)
|
||||
throw Error(
|
||||
"Expected ReactFiberErrorDialog.showErrorDialog to be a function."
|
||||
);
|
||||
function logCapturedError(boundary, errorInfo) {
|
||||
try {
|
||||
!1 !==
|
||||
ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog({
|
||||
componentStack: null !== errorInfo.stack ? errorInfo.stack : "",
|
||||
error: errorInfo.value,
|
||||
errorBoundary:
|
||||
null !== boundary && 1 === boundary.tag ? boundary.stateNode : null
|
||||
}) && console.error(errorInfo.value);
|
||||
} catch (e) {
|
||||
setTimeout(function() {
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
}
|
||||
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
||||
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
lane.payload = { element: null };
|
||||
var error = errorInfo.value;
|
||||
lane.callback = function() {
|
||||
hasUncaughtError || ((hasUncaughtError = !0), (firstUncaughtError = error));
|
||||
logCapturedError(fiber, errorInfo);
|
||||
};
|
||||
return lane;
|
||||
}
|
||||
function createClassErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
||||
if ("function" === typeof getDerivedStateFromError) {
|
||||
var error = errorInfo.value;
|
||||
lane.payload = function() {
|
||||
logCapturedError(fiber, errorInfo);
|
||||
return getDerivedStateFromError(error);
|
||||
};
|
||||
}
|
||||
var inst = fiber.stateNode;
|
||||
null !== inst &&
|
||||
"function" === typeof inst.componentDidCatch &&
|
||||
(lane.callback = function() {
|
||||
"function" !== typeof getDerivedStateFromError &&
|
||||
(null === legacyErrorBoundariesThatAlreadyFailed
|
||||
? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))
|
||||
: legacyErrorBoundariesThatAlreadyFailed.add(this),
|
||||
logCapturedError(fiber, errorInfo));
|
||||
var stack = errorInfo.stack;
|
||||
this.componentDidCatch(errorInfo.value, {
|
||||
componentStack: null !== stack ? stack : ""
|
||||
});
|
||||
});
|
||||
return lane;
|
||||
}
|
||||
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
||||
didReceiveUpdate = !1;
|
||||
function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
|
||||
workInProgress.child =
|
||||
|
@ -4901,14 +4974,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|||
break;
|
||||
case "collapsed":
|
||||
lastTailNode = renderState.tail;
|
||||
for (var lastTailNode$64 = null; null !== lastTailNode; )
|
||||
null !== lastTailNode.alternate && (lastTailNode$64 = lastTailNode),
|
||||
for (var lastTailNode$69 = null; null !== lastTailNode; )
|
||||
null !== lastTailNode.alternate && (lastTailNode$69 = lastTailNode),
|
||||
(lastTailNode = lastTailNode.sibling);
|
||||
null === lastTailNode$64
|
||||
null === lastTailNode$69
|
||||
? hasRenderedATailFallback || null === renderState.tail
|
||||
? (renderState.tail = null)
|
||||
: (renderState.tail.sibling = null)
|
||||
: (lastTailNode$64.sibling = null);
|
||||
: (lastTailNode$69.sibling = null);
|
||||
}
|
||||
}
|
||||
function bubbleProperties(completedWork) {
|
||||
|
@ -4918,19 +4991,19 @@ function bubbleProperties(completedWork) {
|
|||
newChildLanes = 0,
|
||||
subtreeFlags = 0;
|
||||
if (didBailout)
|
||||
for (var child$65 = completedWork.child; null !== child$65; )
|
||||
(newChildLanes |= child$65.lanes | child$65.childLanes),
|
||||
(subtreeFlags |= child$65.subtreeFlags & 1835008),
|
||||
(subtreeFlags |= child$65.flags & 1835008),
|
||||
(child$65.return = completedWork),
|
||||
(child$65 = child$65.sibling);
|
||||
for (var child$70 = completedWork.child; null !== child$70; )
|
||||
(newChildLanes |= child$70.lanes | child$70.childLanes),
|
||||
(subtreeFlags |= child$70.subtreeFlags & 1835008),
|
||||
(subtreeFlags |= child$70.flags & 1835008),
|
||||
(child$70.return = completedWork),
|
||||
(child$70 = child$70.sibling);
|
||||
else
|
||||
for (child$65 = completedWork.child; null !== child$65; )
|
||||
(newChildLanes |= child$65.lanes | child$65.childLanes),
|
||||
(subtreeFlags |= child$65.subtreeFlags),
|
||||
(subtreeFlags |= child$65.flags),
|
||||
(child$65.return = completedWork),
|
||||
(child$65 = child$65.sibling);
|
||||
for (child$70 = completedWork.child; null !== child$70; )
|
||||
(newChildLanes |= child$70.lanes | child$70.childLanes),
|
||||
(subtreeFlags |= child$70.subtreeFlags),
|
||||
(subtreeFlags |= child$70.flags),
|
||||
(child$70.return = completedWork),
|
||||
(child$70 = child$70.sibling);
|
||||
completedWork.subtreeFlags |= subtreeFlags;
|
||||
completedWork.childLanes = newChildLanes;
|
||||
return didBailout;
|
||||
|
@ -5294,74 +5367,6 @@ function unwindWork(workInProgress) {
|
|||
return null;
|
||||
}
|
||||
}
|
||||
function createCapturedValue(value, source) {
|
||||
return {
|
||||
value: value,
|
||||
source: source,
|
||||
stack: getStackByFiberInDevAndProd(source)
|
||||
};
|
||||
}
|
||||
if (
|
||||
"function" !==
|
||||
typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog
|
||||
)
|
||||
throw Error(
|
||||
"Expected ReactFiberErrorDialog.showErrorDialog to be a function."
|
||||
);
|
||||
function logCapturedError(boundary, errorInfo) {
|
||||
try {
|
||||
!1 !==
|
||||
ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog({
|
||||
componentStack: null !== errorInfo.stack ? errorInfo.stack : "",
|
||||
error: errorInfo.value,
|
||||
errorBoundary:
|
||||
null !== boundary && 1 === boundary.tag ? boundary.stateNode : null
|
||||
}) && console.error(errorInfo.value);
|
||||
} catch (e) {
|
||||
setTimeout(function() {
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
}
|
||||
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
||||
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
lane.payload = { element: null };
|
||||
var error = errorInfo.value;
|
||||
lane.callback = function() {
|
||||
hasUncaughtError || ((hasUncaughtError = !0), (firstUncaughtError = error));
|
||||
logCapturedError(fiber, errorInfo);
|
||||
};
|
||||
return lane;
|
||||
}
|
||||
function createClassErrorUpdate(fiber, errorInfo, lane) {
|
||||
lane = createUpdate(-1, lane);
|
||||
lane.tag = 3;
|
||||
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
||||
if ("function" === typeof getDerivedStateFromError) {
|
||||
var error = errorInfo.value;
|
||||
lane.payload = function() {
|
||||
logCapturedError(fiber, errorInfo);
|
||||
return getDerivedStateFromError(error);
|
||||
};
|
||||
}
|
||||
var inst = fiber.stateNode;
|
||||
null !== inst &&
|
||||
"function" === typeof inst.componentDidCatch &&
|
||||
(lane.callback = function() {
|
||||
"function" !== typeof getDerivedStateFromError &&
|
||||
(null === legacyErrorBoundariesThatAlreadyFailed
|
||||
? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))
|
||||
: legacyErrorBoundariesThatAlreadyFailed.add(this),
|
||||
logCapturedError(fiber, errorInfo));
|
||||
var stack = errorInfo.stack;
|
||||
this.componentDidCatch(errorInfo.value, {
|
||||
componentStack: null !== stack ? stack : ""
|
||||
});
|
||||
});
|
||||
return lane;
|
||||
}
|
||||
var PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set,
|
||||
nextEffect = null;
|
||||
function safelyDetachRef(current, nearestMountedAncestor) {
|
||||
|
@ -6208,6 +6213,8 @@ function requestEventTime() {
|
|||
}
|
||||
function requestUpdateLane(fiber) {
|
||||
if (0 === (fiber.mode & 1)) return 1;
|
||||
if (0 !== (executionContext & 8) && 0 !== workInProgressRootRenderLanes)
|
||||
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
|
||||
if (0 !== ReactCurrentBatchConfig.transition)
|
||||
return (
|
||||
0 === currentEventTransitionLane &&
|
||||
|
@ -6231,7 +6238,7 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|||
if (null === root) return null;
|
||||
markRootUpdated(root, lane, eventTime);
|
||||
root === workInProgressRoot &&
|
||||
((workInProgressRootUpdatedLanes |= lane),
|
||||
(0 === (executionContext & 8) && (workInProgressRootUpdatedLanes |= lane),
|
||||
4 === workInProgressRootExitStatus &&
|
||||
markRootSuspended$1(root, workInProgressRootRenderLanes));
|
||||
1 === lane
|
||||
|
@ -6633,15 +6640,15 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
}
|
||||
var hasInvisibleParentBoundary =
|
||||
0 !== (suspenseStackCursor.current & 1),
|
||||
workInProgress$77 = returnFiber;
|
||||
workInProgress$32 = returnFiber;
|
||||
do {
|
||||
var JSCompiler_temp;
|
||||
if ((JSCompiler_temp = 13 === workInProgress$77.tag)) {
|
||||
var nextState = workInProgress$77.memoizedState;
|
||||
if ((JSCompiler_temp = 13 === workInProgress$32.tag)) {
|
||||
var nextState = workInProgress$32.memoizedState;
|
||||
if (null !== nextState)
|
||||
JSCompiler_temp = null !== nextState.dehydrated ? !0 : !1;
|
||||
else {
|
||||
var props = workInProgress$77.memoizedProps;
|
||||
var props = workInProgress$32.memoizedProps;
|
||||
JSCompiler_temp =
|
||||
void 0 === props.fallback
|
||||
? !1
|
||||
|
@ -6653,17 +6660,17 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
}
|
||||
}
|
||||
if (JSCompiler_temp) {
|
||||
var wakeables = workInProgress$77.updateQueue;
|
||||
var wakeables = workInProgress$32.updateQueue;
|
||||
if (null === wakeables) {
|
||||
var updateQueue = new Set();
|
||||
updateQueue.add(wakeable);
|
||||
workInProgress$77.updateQueue = updateQueue;
|
||||
workInProgress$32.updateQueue = updateQueue;
|
||||
} else wakeables.add(wakeable);
|
||||
if (
|
||||
0 === (workInProgress$77.mode & 1) &&
|
||||
workInProgress$77 !== returnFiber
|
||||
0 === (workInProgress$32.mode & 1) &&
|
||||
workInProgress$32 !== returnFiber
|
||||
) {
|
||||
workInProgress$77.flags |= 128;
|
||||
workInProgress$32.flags |= 128;
|
||||
sourceFiber.flags |= 32768;
|
||||
sourceFiber.flags &= -10053;
|
||||
if (1 === sourceFiber.tag)
|
||||
|
@ -6696,12 +6703,12 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
);
|
||||
wakeable.then(ping, ping);
|
||||
}
|
||||
workInProgress$77.flags |= 16384;
|
||||
workInProgress$77.lanes = thrownValue;
|
||||
workInProgress$32.flags |= 16384;
|
||||
workInProgress$32.lanes = thrownValue;
|
||||
break a;
|
||||
}
|
||||
workInProgress$77 = workInProgress$77.return;
|
||||
} while (null !== workInProgress$77);
|
||||
workInProgress$32 = workInProgress$32.return;
|
||||
} while (null !== workInProgress$32);
|
||||
value = Error(
|
||||
(getComponentNameFromFiber(sourceFiber) || "A React component") +
|
||||
" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."
|
||||
|
@ -6710,47 +6717,47 @@ function handleError(root$jscomp$0, thrownValue) {
|
|||
5 !== workInProgressRootExitStatus &&
|
||||
(workInProgressRootExitStatus = 2);
|
||||
value = createCapturedValue(value, sourceFiber);
|
||||
workInProgress$77 = returnFiber;
|
||||
workInProgress$32 = returnFiber;
|
||||
do {
|
||||
switch (workInProgress$77.tag) {
|
||||
switch (workInProgress$32.tag) {
|
||||
case 3:
|
||||
root = value;
|
||||
workInProgress$77.flags |= 16384;
|
||||
workInProgress$32.flags |= 16384;
|
||||
thrownValue &= -thrownValue;
|
||||
workInProgress$77.lanes |= thrownValue;
|
||||
var update$78 = createRootErrorUpdate(
|
||||
workInProgress$77,
|
||||
workInProgress$32.lanes |= thrownValue;
|
||||
var update$33 = createRootErrorUpdate(
|
||||
workInProgress$32,
|
||||
root,
|
||||
thrownValue
|
||||
);
|
||||
enqueueCapturedUpdate(workInProgress$77, update$78);
|
||||
enqueueCapturedUpdate(workInProgress$32, update$33);
|
||||
break a;
|
||||
case 1:
|
||||
root = value;
|
||||
var ctor = workInProgress$77.type,
|
||||
instance = workInProgress$77.stateNode;
|
||||
var ctor = workInProgress$32.type,
|
||||
instance = workInProgress$32.stateNode;
|
||||
if (
|
||||
0 === (workInProgress$77.flags & 128) &&
|
||||
0 === (workInProgress$32.flags & 128) &&
|
||||
("function" === typeof ctor.getDerivedStateFromError ||
|
||||
(null !== instance &&
|
||||
"function" === typeof instance.componentDidCatch &&
|
||||
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
||||
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
||||
) {
|
||||
workInProgress$77.flags |= 16384;
|
||||
workInProgress$32.flags |= 16384;
|
||||
thrownValue &= -thrownValue;
|
||||
workInProgress$77.lanes |= thrownValue;
|
||||
var update$81 = createClassErrorUpdate(
|
||||
workInProgress$77,
|
||||
workInProgress$32.lanes |= thrownValue;
|
||||
var update$36 = createClassErrorUpdate(
|
||||
workInProgress$32,
|
||||
root,
|
||||
thrownValue
|
||||
);
|
||||
enqueueCapturedUpdate(workInProgress$77, update$81);
|
||||
enqueueCapturedUpdate(workInProgress$32, update$36);
|
||||
break a;
|
||||
}
|
||||
}
|
||||
workInProgress$77 = workInProgress$77.return;
|
||||
} while (null !== workInProgress$77);
|
||||
workInProgress$32 = workInProgress$32.return;
|
||||
} while (null !== workInProgress$32);
|
||||
}
|
||||
completeUnitOfWork(erroredWork);
|
||||
} catch (yetAnotherThrownValue) {
|
||||
|
@ -7753,7 +7760,7 @@ function createFiberFromTypeAndProps(
|
|||
break;
|
||||
case REACT_STRICT_MODE_TYPE:
|
||||
fiberTag = 8;
|
||||
mode |= 24;
|
||||
mode |= 8;
|
||||
break;
|
||||
case REACT_PROFILER_TYPE:
|
||||
return (
|
||||
|
@ -7985,7 +7992,7 @@ var roots = new Map(),
|
|||
devToolsConfig$jscomp$inline_986 = {
|
||||
findFiberByHostInstance: getInstanceFromTag,
|
||||
bundleType: 0,
|
||||
version: "17.0.3-experimental-2d8d133e1",
|
||||
version: "17.0.3-experimental-0eea57724",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForViewTag: function() {
|
||||
|
@ -8011,6 +8018,7 @@ var internals$jscomp$inline_1243 = {
|
|||
overrideProps: null,
|
||||
overridePropsDeletePath: null,
|
||||
overridePropsRenamePath: null,
|
||||
setErrorHandler: null,
|
||||
setSuspenseHandler: null,
|
||||
scheduleUpdate: null,
|
||||
currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher,
|
||||
|
@ -8026,7 +8034,7 @@ var internals$jscomp$inline_1243 = {
|
|||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "17.0.3-experimental-2d8d133e1"
|
||||
reconcilerVersion: "17.0.3-experimental-0eea57724"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1244 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче