React Native sync for revisions afcb9cd...c0c71a8

Summary:
This sync includes the following changes:
- **[c0c71a868](https://github.com/facebook/react/commit/c0c71a868 )**: Re-enable useMutableSource in internal RN ([#22750](https://github.com/facebook/react/pull/22750)) //<Ricky>//
- **[cb11155c8](https://github.com/facebook/react/commit/cb11155c8 )**: Add runtime type checks around module boundary code ([#22748](https://github.com/facebook/react/pull/22748)) //<Brian Vaughn>//
- **[a04f13d29](https://github.com/facebook/react/commit/a04f13d29 )**: react-refresh@0.11.0 //<Dan Abramov>//
- **[ff9897d23](https://github.com/facebook/react/commit/ff9897d23 )**: [React Refresh] support typescript namespace syntax ([#22621](https://github.com/facebook/react/pull/22621)) //<irinakk>//
- **[0ddd69d12](https://github.com/facebook/react/commit/0ddd69d12 )**: Throw on hydration mismatch and force client rendering if boundary hasn't suspended within concurrent root ([#22629](https://github.com/facebook/react/pull/22629)) //<salazarm>//
- **[c3f34e4be](https://github.com/facebook/react/commit/c3f34e4be )**: eslint-plugin-react-hooks@4.3.0 //<Dan Abramov>//
- **[827021c4e](https://github.com/facebook/react/commit/827021c4e )**: Changelog for eslint-plugin-react-hooks@4.3.0 //<Dan Abramov>//
- **[8ca3f567b](https://github.com/facebook/react/commit/8ca3f567b )**: Fix module-boundary wrappers ([#22688](https://github.com/facebook/react/pull/22688)) //<Brian Vaughn>//
- **[1bf6deb86](https://github.com/facebook/react/commit/1bf6deb86 )**: Renamed packages/react-devtools-scheduling-profiler to packages/react-devtools-timeline ([#22691](https://github.com/facebook/react/pull/22691)) //<Brian Vaughn>//
- **[51c558aeb](https://github.com/facebook/react/commit/51c558aeb )**: Rename (some) "scheduling profiler" references to "timeline" ([#22690](https://github.com/facebook/react/pull/22690)) //<Brian Vaughn>//
- **[00ced1e2b](https://github.com/facebook/react/commit/00ced1e2b )**: Fix useId in strict mode ([#22681](https://github.com/facebook/react/pull/22681)) //<Andrew Clark>//
- **[5cccacd13](https://github.com/facebook/react/commit/5cccacd13 )**: Upgrade useId to alpha channel ([#22674](https://github.com/facebook/react/pull/22674)) //<Andrew Clark>//
- **[75f3ddebf](https://github.com/facebook/react/commit/75f3ddebf )**: Remove experimental useOpaqueIdentifier API ([#22672](https://github.com/facebook/react/pull/22672)) //<Andrew Clark>//
- **[8c4a05b8f](https://github.com/facebook/react/commit/8c4a05b8f )**: Remove flow pragma comment from module registration start/stop templates ([#22670](https://github.com/facebook/react/pull/22670)) //<Brian Vaughn>//
- **[ebf9ae857](https://github.com/facebook/react/commit/ebf9ae857 )**: useId ([#22644](https://github.com/facebook/react/pull/22644)) //<Andrew Clark>//
- **[a0d991fe6](https://github.com/facebook/react/commit/a0d991fe6 )**: Re-land #22292 (remove uMS from open source build) ([#22664](https://github.com/facebook/react/pull/22664)) //<Andrew Clark>//
- **[6bce0355c](https://github.com/facebook/react/commit/6bce0355c )**: Upgrade useSyncExternalStore to alpha channel ([#22662](https://github.com/facebook/react/pull/22662)) //<Andrew Clark>//
- **[7034408ff](https://github.com/facebook/react/commit/7034408ff )**: Follow-up improvements to error code extraction infra ([#22516](https://github.com/facebook/react/pull/22516)) //<Andrew Clark>//
- **[90e5d3638](https://github.com/facebook/react/commit/90e5d3638 )**: chore: fix comment typo ([#22615](https://github.com/facebook/react/pull/22615)) //<btea>//
- **[3c4c1c470](https://github.com/facebook/react/commit/3c4c1c470 )**: Remove warning for dangling passive effects ([#22609](https://github.com/facebook/react/pull/22609)) //<Andrew Clark>//
- **[d5b6b4b86](https://github.com/facebook/react/commit/d5b6b4b86 )**: Expand act warning to cover all APIs that might schedule React work ([#22607](https://github.com/facebook/react/pull/22607)) //<Andrew Clark>//
- **[fa9bea0c4](https://github.com/facebook/react/commit/fa9bea0c4 )**: Initial implementation of cache cleanup ([#22510](https://github.com/facebook/react/pull/22510)) //<Joseph Savona>//
- **[0e8a5aff3](https://github.com/facebook/react/commit/0e8a5aff3 )**: Scheduling Profiler: Add marks for component effects (mount and unmount) ([#22578](https://github.com/facebook/react/pull/22578)) //<Brian Vaughn>//
- **[4ba20579d](https://github.com/facebook/react/commit/4ba20579d )**: Scheduling Profiler: De-emphasize React internal frames ([#22588](https://github.com/facebook/react/pull/22588)) //<Brian Vaughn>//
- **[cdb8a1d19](https://github.com/facebook/react/commit/cdb8a1d19 )**: [Fizz] Add option to inject bootstrapping script tags after the shell is injected ([#22594](https://github.com/facebook/react/pull/22594)) //<Sebastian Markbåge>//
- **[34e4c9756](https://github.com/facebook/react/commit/34e4c9756 )**: Clear extra nodes if there's a hydration mismatch within a suspense boundary  ([#22592](https://github.com/facebook/react/pull/22592)) //<Sebastian Markbåge>//
- **[02f411578](https://github.com/facebook/react/commit/02f411578 )**: Upgrade useInsertionEffect to stable ([#22589](https://github.com/facebook/react/pull/22589)) //<Andrew Clark>//
- **[2af4a7933](https://github.com/facebook/react/commit/2af4a7933 )**: Hydrate using SuspenseComponent as the parent ([#22582](https://github.com/facebook/react/pull/22582)) //<Sebastian Markbåge>//
- **[b1acff0cc](https://github.com/facebook/react/commit/b1acff0cc )**: Enable cache in test renderer ([#22580](https://github.com/facebook/react/pull/22580)) //<Joseph Savona>//
- **[996da67b2](https://github.com/facebook/react/commit/996da67b2 )**: Replace global `jest` heuristic with `IS_REACT_ACT_ENVIRONMENT` ([#22562](https://github.com/facebook/react/pull/22562)) //<Andrew Clark>//
- **[163e81c1f](https://github.com/facebook/react/commit/163e81c1f )**: Support disabling spurious act warnings with a global environment flag ([#22561](https://github.com/facebook/react/pull/22561)) //<Andrew Clark>//
- **[23b7dfeff](https://github.com/facebook/react/commit/23b7dfeff )**: Enable scheduling profiler for RN FB profiling builds ([#22566](https://github.com/facebook/react/pull/22566)) //<Brian Vaughn>//
- **[61455a25b](https://github.com/facebook/react/commit/61455a25b )**: Enable experimental Cache API in www TestRenderer ([#22554](https://github.com/facebook/react/pull/22554)) //<Joseph Savona>//
- **[7142d110b](https://github.com/facebook/react/commit/7142d110b )**: Bugfix: Nested useOpaqueIdentifier references ([#22553](https://github.com/facebook/react/pull/22553)) //<Andrew Clark>//
- **[1e247ff89](https://github.com/facebook/react/commit/1e247ff89 )**: Enabled scheduling profiler marks for React Native FB target ([#22544](https://github.com/facebook/react/pull/22544)) //<Brian Vaughn>//
- **[c16b005f2](https://github.com/facebook/react/commit/c16b005f2 )**: Update test and stack frame code to support newer V8 stack formats ([#22477](https://github.com/facebook/react/pull/22477)) //<Brian Vaughn>//
- **[55d75005b](https://github.com/facebook/react/commit/55d75005b )**: duplicate value in variable ([#22390](https://github.com/facebook/react/pull/22390)) //<BIKI DAS>//

Changelog:
[General][Changed] - React Native sync for revisions afcb9cd...c0c71a8

jest_e2e[run_all_tests]

Reviewed By: yungsters

Differential Revision: D32395873

fbshipit-source-id: 3afd158f167b1eedcc244e29aba1a2c502d3c9d9
This commit is contained in:
Andrei Shikov 2021-11-15 05:59:23 -08:00 коммит произвёл Facebook GitHub Bot
Родитель 7366a866b3
Коммит 55663ec99d
7 изменённых файлов: 3778 добавлений и 1693 удалений

Просмотреть файл

@ -1 +1 @@
afcb9cdc9343ddc134b03dcf4d7fbc0810b6002b
c0c71a868560b3042847722659579418bfe2d7e1

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0641813b146d4710c4029f156d65891e>>
* @generated SignedSource<<b80a65da6d07065eb2cb1fb8dca0c565>>
*/
"use strict";
@ -1619,6 +1619,13 @@ function onCommitRoot(root) {
);
} catch (err) {}
}
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
log = Math.log,
LN2 = Math.LN2;
function clz32Fallback(x) {
x >>>= 0;
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
}
var nextTransitionLane = 64,
nextRetryLane = 4194304;
function getHighestPriorityLanes(lanes) {
@ -1802,12 +1809,6 @@ function markRootEntangled(root, entangledLanes) {
rootEntangledLanes &= ~lane;
}
}
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
log = Math.log,
LN2 = Math.LN2;
function clz32Fallback(lanes) {
return 0 === lanes ? 32 : (31 - ((log(lanes) / LN2) | 0)) | 0;
}
var currentUpdatePriority = 0;
function lanesToEventPriority(lanes) {
lanes &= -lanes;
@ -2128,12 +2129,14 @@ function shallowEqual(objA, objB) {
var keysA = Object.keys(objA),
keysB = Object.keys(objB);
if (keysA.length !== keysB.length) return !1;
for (keysB = 0; keysB < keysA.length; keysB++)
for (keysB = 0; keysB < keysA.length; keysB++) {
var currentKey = keysA[keysB];
if (
!hasOwnProperty.call(objB, keysA[keysB]) ||
!objectIs(objA[keysA[keysB]], objB[keysA[keysB]])
!hasOwnProperty.call(objB, currentKey) ||
!objectIs(objA[currentKey], objB[currentKey])
)
return !1;
}
return !0;
}
function describeFiber(fiber) {
@ -2631,6 +2634,26 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
"function" === typeof instance.componentDidMount &&
(workInProgress.flags |= 4);
}
var forkStack = [],
forkStackIndex = 0,
treeForkProvider = null,
idStack = [],
idStackIndex = 0,
treeContextProvider = null;
function popTreeContext(workInProgress) {
for (; workInProgress === treeForkProvider; )
(treeForkProvider = forkStack[--forkStackIndex]),
(forkStack[forkStackIndex] = null),
--forkStackIndex,
(forkStack[forkStackIndex] = null);
for (; workInProgress === treeContextProvider; )
(treeContextProvider = idStack[--idStackIndex]),
(idStack[idStackIndex] = null),
--idStackIndex,
(idStack[idStackIndex] = null),
--idStackIndex,
(idStack[idStackIndex] = null);
}
function coerceRef(returnFiber, current, element) {
returnFiber = element.ref;
if (
@ -2725,7 +2748,8 @@ function ChildReconciler(shouldTrackSideEffects) {
}
function placeChild(newFiber, lastPlacedIndex, newIndex) {
newFiber.index = newIndex;
if (!shouldTrackSideEffects) return lastPlacedIndex;
if (!shouldTrackSideEffects)
return (newFiber.flags |= 1048576), lastPlacedIndex;
newIndex = newFiber.alternate;
if (null !== newIndex)
return (
@ -3329,7 +3353,8 @@ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
currentHook = null,
workInProgressHook = null,
didScheduleRenderPhaseUpdate = !1,
didScheduleRenderPhaseUpdateDuringThisPass = !1;
didScheduleRenderPhaseUpdateDuringThisPass = !1,
globalClientIdCounter = 0;
function throwInvalidHookError() {
throw Error(
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."
@ -3752,7 +3777,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
}
function mountEffect(create, deps) {
return mountEffectImpl(4196352, 8, create, deps);
return mountEffectImpl(8390656, 8, create, deps);
}
function updateEffect(create, deps) {
return updateEffectImpl(2048, 8, create, deps);
@ -3832,6 +3857,9 @@ function startTransition(setPending, callback) {
(ReactCurrentBatchConfig$1.transition = prevTransition);
}
}
function updateId() {
return updateWorkInProgressHook().memoizedState;
}
function dispatchReducerAction(fiber, queue, action) {
var lane = requestUpdateLane(fiber);
action = {
@ -3939,7 +3967,7 @@ var ContextOnlyDispatcher = {
useTransition: throwInvalidHookError,
useMutableSource: throwInvalidHookError,
useSyncExternalStore: throwInvalidHookError,
useOpaqueIdentifier: throwInvalidHookError,
useId: throwInvalidHookError,
unstable_isNewReconciler: !1
},
HooksDispatcherOnMount = {
@ -4037,8 +4065,10 @@ var ContextOnlyDispatcher = {
return useMutableSource(hook, source, getSnapshot, subscribe);
},
useSyncExternalStore: mountSyncExternalStore,
useOpaqueIdentifier: function() {
throw Error("Not yet implemented");
useId: function() {
var hook = mountWorkInProgressHook();
var id = "r:" + (globalClientIdCounter++).toString(32);
return (hook.memoizedState = id);
},
unstable_isNewReconciler: !1
},
@ -4121,9 +4151,7 @@ var ContextOnlyDispatcher = {
}
return nextSnapshot;
},
useOpaqueIdentifier: function() {
return updateReducer(basicStateReducer)[0];
},
useId: updateId,
unstable_isNewReconciler: !1
},
HooksDispatcherOnRerender = {
@ -4166,9 +4194,7 @@ var ContextOnlyDispatcher = {
},
useMutableSource: updateMutableSource,
useSyncExternalStore: mountSyncExternalStore,
useOpaqueIdentifier: function() {
return rerenderReducer(basicStateReducer)[0];
},
useId: updateId,
unstable_isNewReconciler: !1
};
function createCapturedValue(value, source) {
@ -4434,8 +4460,8 @@ function bubbleProperties(completedWork) {
if (didBailout)
for (var child$36 = completedWork.child; null !== child$36; )
(newChildLanes |= child$36.lanes | child$36.childLanes),
(subtreeFlags |= child$36.subtreeFlags & 7340032),
(subtreeFlags |= child$36.flags & 7340032),
(subtreeFlags |= child$36.subtreeFlags & 14680064),
(subtreeFlags |= child$36.flags & 14680064),
(child$36.return = completedWork),
(child$36 = child$36.sibling);
else
@ -4476,6 +4502,7 @@ function completeSuspendedOffscreenHostContainer(current, workInProgress) {
}
function completeWork(current, workInProgress, renderLanes) {
var newProps = workInProgress.pendingProps;
popTreeContext(workInProgress);
switch (workInProgress.tag) {
case 2:
case 16:
@ -4599,7 +4626,7 @@ function completeWork(current, workInProgress, renderLanes) {
workInProgressRootExitStatus = 4;
null === workInProgressRoot ||
(0 === (workInProgressRootSkippedLanes & 268435455) &&
0 === (workInProgressRootUpdatedLanes & 268435455)) ||
0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) ||
markRootSuspended$1(
workInProgressRoot,
workInProgressRootRenderLanes
@ -4654,7 +4681,7 @@ function completeWork(current, workInProgress, renderLanes) {
for (newProps = workInProgress.child; null !== newProps; )
(renderLanes = newProps),
(type = current),
(renderLanes.flags &= 7340034),
(renderLanes.flags &= 14680066),
(renderedTail = renderLanes.alternate),
null === renderedTail
? ((renderLanes.childLanes = 0),
@ -5270,7 +5297,7 @@ function pushHostRootContext(workInProgress) {
pushTopLevelContextObject(workInProgress, root.context, !1);
pushHostContainer(workInProgress, root.containerInfo);
}
var SUSPENDED_MARKER = { dehydrated: null, retryLane: 0 };
var SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 };
function mountSuspenseOffscreenState(renderLanes) {
return { baseLanes: renderLanes, cachePool: null };
}
@ -5495,7 +5522,7 @@ function updateSuspenseFallbackChildren(
primaryChildren
))),
(current.subtreeFlags =
currentPrimaryChildFragment.subtreeFlags & 7340032));
currentPrimaryChildFragment.subtreeFlags & 14680064));
null !== currentFallbackChildFragment
? (fallbackChildren = createWorkInProgress(
currentFallbackChildFragment,
@ -5719,6 +5746,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
}
function unwindWork(workInProgress) {
popTreeContext(workInProgress);
switch (workInProgress.tag) {
case 1:
isContextProvider(workInProgress.type) && popContext();
@ -5776,6 +5804,13 @@ function safelyDetachRef(current, nearestMountedAncestor) {
}
else ref.current = null;
}
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
try {
destroy();
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
}
}
var shouldFireAfterActiveInstanceBlur = !1;
function commitBeforeMutationEffects(root, firstChild) {
for (nextEffect = firstChild; null !== nextEffect; )
@ -5840,7 +5875,7 @@ function commitBeforeMutationEffects(root, firstChild) {
function commitHookEffectListUnmount(
flags,
finishedWork,
nearestMountedAncestor$jscomp$0
nearestMountedAncestor
) {
var updateQueue = finishedWork.updateQueue;
updateQueue = null !== updateQueue ? updateQueue.lastEffect : null;
@ -5850,27 +5885,20 @@ function commitHookEffectListUnmount(
if ((effect.tag & flags) === flags) {
var destroy = effect.destroy;
effect.destroy = void 0;
if (void 0 !== destroy) {
var current = finishedWork,
nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
try {
destroy();
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
}
}
void 0 !== destroy &&
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);
}
effect = effect.next;
} while (effect !== updateQueue);
}
}
function commitHookEffectListMount(tag, finishedWork) {
function commitHookEffectListMount(flags, finishedWork) {
finishedWork = finishedWork.updateQueue;
finishedWork = null !== finishedWork ? finishedWork.lastEffect : null;
if (null !== finishedWork) {
var effect = (finishedWork = finishedWork.next);
do {
if ((effect.tag & tag) === tag) {
if ((effect.tag & flags) === flags) {
var create$80 = effect.create;
effect.destroy = create$80();
}
@ -5977,22 +6005,11 @@ function commitMutationEffects(root, firstChild) {
var _effect = effect,
destroy = _effect.destroy,
tag = _effect.tag;
if (
void 0 !== destroy &&
(0 !== (tag & 2) || 0 !== (tag & 4))
) {
_effect = current;
var nearestMountedAncestor = root;
try {
destroy();
} catch (error) {
captureCommitPhaseError(
_effect,
nearestMountedAncestor,
error
);
}
}
void 0 !== destroy &&
(0 !== (tag & 2)
? safelyCallDestroy(current, root, destroy)
: 0 !== (tag & 4) &&
safelyCallDestroy(current, root, destroy));
effect = effect.next;
} while (effect !== firstEffect);
}
@ -6222,7 +6239,8 @@ var ceil = Math.ceil,
workInProgressRootExitStatus = 0,
workInProgressRootFatalError = null,
workInProgressRootSkippedLanes = 0,
workInProgressRootUpdatedLanes = 0,
workInProgressRootInterleavedUpdatedLanes = 0,
workInProgressRootRenderPhaseUpdatedLanes = 0,
workInProgressRootPingedLanes = 0,
globalMostRecentFallbackTime = 0,
workInProgressRootRenderTargetTime = Infinity,
@ -6282,16 +6300,19 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
var root = markUpdateLaneFromFiberToRoot(fiber, lane);
if (null === root) return null;
markRootUpdated(root, lane, eventTime);
root === workInProgressRoot &&
(0 === (executionContext & 2) && (workInProgressRootUpdatedLanes |= lane),
4 === workInProgressRootExitStatus &&
markRootSuspended$1(root, workInProgressRootRenderLanes));
ensureRootIsScheduled(root, eventTime);
1 === lane &&
0 === executionContext &&
0 === (fiber.mode & 1) &&
((workInProgressRootRenderTargetTime = now() + 500),
includesLegacySyncCallbacks && flushSyncCallbacks());
0 !== (executionContext & 2) && root === workInProgressRoot
? (workInProgressRootRenderPhaseUpdatedLanes |= lane)
: (root === workInProgressRoot &&
(0 === (executionContext & 2) &&
(workInProgressRootInterleavedUpdatedLanes |= lane),
4 === workInProgressRootExitStatus &&
markRootSuspended$1(root, workInProgressRootRenderLanes)),
ensureRootIsScheduled(root, eventTime),
1 === lane &&
0 === executionContext &&
0 === (fiber.mode & 1) &&
((workInProgressRootRenderTargetTime = now() + 500),
includesLegacySyncCallbacks && flushSyncCallbacks()));
return root;
}
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
@ -6538,9 +6559,15 @@ function recoverFromConcurrentError(root, errorRetryLanes) {
var prevExecutionContext = executionContext;
executionContext |= 8;
root.isDehydrated && ((root.isDehydrated = !1), shim(root.containerInfo));
root = renderRootSync(root, errorRetryLanes);
for (
var exitStatus, i = 0;
50 > i &&
((exitStatus = renderRootSync(root, errorRetryLanes)),
2 === exitStatus && 0 !== workInProgressRootRenderPhaseUpdatedLanes);
i++
);
executionContext = prevExecutionContext;
return root;
return exitStatus;
}
function isRenderConsistentWithExternalStores(finishedWork) {
for (var node = finishedWork; ; ) {
@ -6578,7 +6605,7 @@ function isRenderConsistentWithExternalStores(finishedWork) {
}
function markRootSuspended$1(root, suspendedLanes) {
suspendedLanes &= ~workInProgressRootPingedLanes;
suspendedLanes &= ~workInProgressRootUpdatedLanes;
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
root.suspendedLanes |= suspendedLanes;
root.pingedLanes &= ~suspendedLanes;
for (root = root.expirationTimes; 0 < suspendedLanes; ) {
@ -6596,13 +6623,10 @@ function performSyncWorkOnRoot(root) {
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
var exitStatus = renderRootSync(root, lanes);
if (0 !== root.tag && 2 === exitStatus) {
var prevExecutionContext = executionContext;
executionContext |= 8;
root.isDehydrated && ((root.isDehydrated = !1), shim(root.containerInfo));
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
0 !== errorRetryLanes &&
((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes)));
executionContext = prevExecutionContext;
((lanes = errorRetryLanes),
(exitStatus = recoverFromConcurrentError(root, errorRetryLanes)));
}
if (1 === exitStatus)
throw ((exitStatus = workInProgressRootFatalError),
@ -6629,6 +6653,7 @@ function prepareFreshStack(root, lanes) {
if (null !== workInProgress)
for (timeoutHandle = workInProgress.return; null !== timeoutHandle; ) {
var interruptedWork = timeoutHandle;
popTreeContext(interruptedWork);
switch (interruptedWork.tag) {
case 1:
interruptedWork = interruptedWork.type.childContextTypes;
@ -6668,7 +6693,7 @@ function prepareFreshStack(root, lanes) {
workInProgressRootRenderLanes = subtreeRenderLanes = lanes;
workInProgressRootExitStatus = 0;
workInProgressRootFatalError = null;
workInProgressRootPingedLanes = workInProgressRootUpdatedLanes = workInProgressRootSkippedLanes = 0;
workInProgressRootPingedLanes = workInProgressRootRenderPhaseUpdatedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0;
if (null !== interleavedQueues) {
for (root = 0; root < interleavedQueues.length; root++)
if (
@ -6747,83 +6772,81 @@ function handleError(root$jscomp$0, thrownValue) {
}
b: {
sourceFiber$jscomp$0 = returnFiber;
var sourceFiber$jscomp$1 = sourceFiber,
rootRenderLanes = thrownValue,
hasInvisibleParentBoundary =
0 !== (suspenseStackCursor.current & 1),
node = sourceFiber$jscomp$0;
var hasInvisibleParentBoundary =
0 !== (suspenseStackCursor.current & 1);
do {
var JSCompiler_temp;
if ((JSCompiler_temp = 13 === node.tag)) {
var nextState = node.memoizedState;
if ((JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag)) {
var nextState = sourceFiber$jscomp$0.memoizedState;
JSCompiler_temp =
null !== nextState
? null !== nextState.dehydrated
? !0
: !1
: !0 !== node.memoizedProps.unstable_avoidThisFallback
: !0 !==
sourceFiber$jscomp$0.memoizedProps
.unstable_avoidThisFallback
? !0
: hasInvisibleParentBoundary
? !1
: !0;
}
if (JSCompiler_temp) {
if (0 === (node.mode & 1)) {
if (node === sourceFiber$jscomp$0) node.flags |= 65536;
else {
node.flags |= 128;
sourceFiber$jscomp$1.flags |= 131072;
sourceFiber$jscomp$1.flags &= -52805;
if (
enablePersistentOffscreenHostContainer &&
null === node.alternate
) {
var offscreenContainer = node.child.child;
if (null !== offscreenContainer) {
var containerProps = getOffscreenContainerProps(
"hidden",
offscreenContainer.memoizedProps.children
);
offscreenContainer.pendingProps = containerProps;
offscreenContainer.memoizedProps = containerProps;
}
}
if (1 === sourceFiber$jscomp$1.tag)
if (null === sourceFiber$jscomp$1.alternate)
sourceFiber$jscomp$1.tag = 17;
else {
var update = createUpdate(-1, 1);
update.tag = 2;
enqueueUpdate(sourceFiber$jscomp$1, update);
}
sourceFiber$jscomp$1.lanes |= 1;
}
var suspenseBoundary = node;
break b;
}
node.flags |= 65536;
node.lanes = rootRenderLanes;
suspenseBoundary = node;
var suspenseBoundary = sourceFiber$jscomp$0;
break b;
}
node = node.return;
} while (null !== node);
sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return;
} while (null !== sourceFiber$jscomp$0);
suspenseBoundary = null;
}
if (null !== suspenseBoundary) {
value = void 0;
sourceFiber = suspenseBoundary;
if (sourceFiber.mode & 1) {
suspenseBoundary.flags &= -257;
value = suspenseBoundary;
sourceFiber$jscomp$0 = thrownValue;
if (0 === (value.mode & 1))
if (value === returnFiber) value.flags |= 65536;
else {
value.flags |= 128;
sourceFiber.flags |= 131072;
sourceFiber.flags &= -52805;
if (
enablePersistentOffscreenHostContainer &&
null === value.alternate
) {
var offscreenContainer = value.child.child;
if (null !== offscreenContainer) {
var containerProps = getOffscreenContainerProps(
"hidden",
offscreenContainer.memoizedProps.children
);
offscreenContainer.pendingProps = containerProps;
offscreenContainer.memoizedProps = containerProps;
}
}
if (1 === sourceFiber.tag)
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
else {
var update = createUpdate(-1, 1);
update.tag = 2;
enqueueUpdate(sourceFiber, update);
}
sourceFiber.lanes |= 1;
}
else (value.flags |= 65536), (value.lanes = sourceFiber$jscomp$0);
sourceFiber = void 0;
value = suspenseBoundary;
if (value.mode & 1) {
var pingCache = root.pingCache;
null === pingCache
? ((pingCache = root.pingCache = new PossiblyWeakMap()),
(value = new Set()),
pingCache.set(wakeable, value))
: ((value = pingCache.get(wakeable)),
void 0 === value &&
((value = new Set()), pingCache.set(wakeable, value)));
if (!value.has(thrownValue)) {
value.add(thrownValue);
(sourceFiber = new Set()),
pingCache.set(wakeable, sourceFiber))
: ((sourceFiber = pingCache.get(wakeable)),
void 0 === sourceFiber &&
((sourceFiber = new Set()),
pingCache.set(wakeable, sourceFiber)));
if (!sourceFiber.has(thrownValue)) {
sourceFiber.add(thrownValue);
var ping = pingSuspendedRoot.bind(
null,
root,
@ -6833,11 +6856,11 @@ function handleError(root$jscomp$0, thrownValue) {
wakeable.then(ping, ping);
}
}
var wakeables = sourceFiber.updateQueue;
var wakeables = value.updateQueue;
if (null === wakeables) {
var updateQueue = new Set();
updateQueue.add(wakeable);
sourceFiber.updateQueue = updateQueue;
value.updateQueue = updateQueue;
} else wakeables.add(wakeable);
break a;
} else
@ -7784,7 +7807,7 @@ function createWorkInProgress(current, pendingProps) {
(workInProgress.flags = 0),
(workInProgress.subtreeFlags = 0),
(workInProgress.deletions = null));
workInProgress.flags = current.flags & 7340032;
workInProgress.flags = current.flags & 14680064;
workInProgress.childLanes = current.childLanes;
workInProgress.lanes = current.lanes;
workInProgress.child = current.child;
@ -8140,10 +8163,10 @@ batchedUpdatesImpl = function(fn, a) {
}
};
var roots = new Map(),
devToolsConfig$jscomp$inline_935 = {
devToolsConfig$jscomp$inline_925 = {
findFiberByHostInstance: getInstanceFromInstance,
bundleType: 0,
version: "18.0.0-afcb9cdc9-20211008",
version: "18.0.0-c0c71a868-20211112",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForViewTag: function() {
@ -8158,11 +8181,11 @@ var roots = new Map(),
}.bind(null, findNodeHandle)
}
};
var internals$jscomp$inline_1189 = {
bundleType: devToolsConfig$jscomp$inline_935.bundleType,
version: devToolsConfig$jscomp$inline_935.version,
rendererPackageName: devToolsConfig$jscomp$inline_935.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_935.rendererConfig,
var internals$jscomp$inline_1179 = {
bundleType: devToolsConfig$jscomp$inline_925.bundleType,
version: devToolsConfig$jscomp$inline_925.version,
rendererPackageName: devToolsConfig$jscomp$inline_925.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_925.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@ -8178,26 +8201,26 @@ var internals$jscomp$inline_1189 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_935.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_925.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.0.0-afcb9cdc9-20211008"
reconcilerVersion: "18.0.0-c0c71a868-20211112"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1190 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1180 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1190.isDisabled &&
hook$jscomp$inline_1190.supportsFiber
!hook$jscomp$inline_1180.isDisabled &&
hook$jscomp$inline_1180.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1190.inject(
internals$jscomp$inline_1189
(rendererID = hook$jscomp$inline_1180.inject(
internals$jscomp$inline_1179
)),
(injectedHook = hook$jscomp$inline_1190);
(injectedHook = hook$jscomp$inline_1180);
} catch (err) {}
}
exports.createPortal = function(children, containerTag) {

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b5653158726335473c74f890aec077fc>>
* @generated SignedSource<<6fc8d6b12f7d5605a1f7ab5894718cb3>>
*/
"use strict";
@ -1697,6 +1697,13 @@ function onCommitRoot(root) {
);
} catch (err) {}
}
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
log = Math.log,
LN2 = Math.LN2;
function clz32Fallback(x) {
x >>>= 0;
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
}
var nextTransitionLane = 64,
nextRetryLane = 4194304;
function getHighestPriorityLanes(lanes) {
@ -1880,12 +1887,6 @@ function markRootEntangled(root, entangledLanes) {
rootEntangledLanes &= ~lane;
}
}
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
log = Math.log,
LN2 = Math.LN2;
function clz32Fallback(lanes) {
return 0 === lanes ? 32 : (31 - ((log(lanes) / LN2) | 0)) | 0;
}
var currentUpdatePriority = 0;
function lanesToEventPriority(lanes) {
lanes &= -lanes;
@ -2087,12 +2088,14 @@ function shallowEqual(objA, objB) {
var keysA = Object.keys(objA),
keysB = Object.keys(objB);
if (keysA.length !== keysB.length) return !1;
for (keysB = 0; keysB < keysA.length; keysB++)
for (keysB = 0; keysB < keysA.length; keysB++) {
var currentKey = keysA[keysB];
if (
!hasOwnProperty.call(objB, keysA[keysB]) ||
!objectIs(objA[keysA[keysB]], objB[keysA[keysB]])
!hasOwnProperty.call(objB, currentKey) ||
!objectIs(objA[currentKey], objB[currentKey])
)
return !1;
}
return !0;
}
function describeFiber(fiber) {
@ -2602,6 +2605,26 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
"function" === typeof instance.componentDidMount &&
(workInProgress.flags |= 4);
}
var forkStack = [],
forkStackIndex = 0,
treeForkProvider = null,
idStack = [],
idStackIndex = 0,
treeContextProvider = null;
function popTreeContext(workInProgress) {
for (; workInProgress === treeForkProvider; )
(treeForkProvider = forkStack[--forkStackIndex]),
(forkStack[forkStackIndex] = null),
--forkStackIndex,
(forkStack[forkStackIndex] = null);
for (; workInProgress === treeContextProvider; )
(treeContextProvider = idStack[--idStackIndex]),
(idStack[idStackIndex] = null),
--idStackIndex,
(idStack[idStackIndex] = null),
--idStackIndex,
(idStack[idStackIndex] = null);
}
function coerceRef(returnFiber, current, element) {
returnFiber = element.ref;
if (
@ -2696,7 +2719,8 @@ function ChildReconciler(shouldTrackSideEffects) {
}
function placeChild(newFiber, lastPlacedIndex, newIndex) {
newFiber.index = newIndex;
if (!shouldTrackSideEffects) return lastPlacedIndex;
if (!shouldTrackSideEffects)
return (newFiber.flags |= 1048576), lastPlacedIndex;
newIndex = newFiber.alternate;
if (null !== newIndex)
return (
@ -3300,7 +3324,8 @@ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
currentHook = null,
workInProgressHook = null,
didScheduleRenderPhaseUpdate = !1,
didScheduleRenderPhaseUpdateDuringThisPass = !1;
didScheduleRenderPhaseUpdateDuringThisPass = !1,
globalClientIdCounter = 0;
function throwInvalidHookError() {
throw Error(
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."
@ -3723,7 +3748,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
}
function mountEffect(create, deps) {
return mountEffectImpl(4196352, 8, create, deps);
return mountEffectImpl(8390656, 8, create, deps);
}
function updateEffect(create, deps) {
return updateEffectImpl(2048, 8, create, deps);
@ -3803,6 +3828,9 @@ function startTransition(setPending, callback) {
(ReactCurrentBatchConfig$1.transition = prevTransition);
}
}
function updateId() {
return updateWorkInProgressHook().memoizedState;
}
function dispatchReducerAction(fiber, queue, action) {
var lane = requestUpdateLane(fiber);
action = {
@ -3910,7 +3938,7 @@ var ContextOnlyDispatcher = {
useTransition: throwInvalidHookError,
useMutableSource: throwInvalidHookError,
useSyncExternalStore: throwInvalidHookError,
useOpaqueIdentifier: throwInvalidHookError,
useId: throwInvalidHookError,
unstable_isNewReconciler: !1
},
HooksDispatcherOnMount = {
@ -4008,8 +4036,10 @@ var ContextOnlyDispatcher = {
return useMutableSource(hook, source, getSnapshot, subscribe);
},
useSyncExternalStore: mountSyncExternalStore,
useOpaqueIdentifier: function() {
throw Error("Not yet implemented");
useId: function() {
var hook = mountWorkInProgressHook();
var id = "r:" + (globalClientIdCounter++).toString(32);
return (hook.memoizedState = id);
},
unstable_isNewReconciler: !1
},
@ -4092,9 +4122,7 @@ var ContextOnlyDispatcher = {
}
return nextSnapshot;
},
useOpaqueIdentifier: function() {
return updateReducer(basicStateReducer)[0];
},
useId: updateId,
unstable_isNewReconciler: !1
},
HooksDispatcherOnRerender = {
@ -4137,9 +4165,7 @@ var ContextOnlyDispatcher = {
},
useMutableSource: updateMutableSource,
useSyncExternalStore: mountSyncExternalStore,
useOpaqueIdentifier: function() {
return rerenderReducer(basicStateReducer)[0];
},
useId: updateId,
unstable_isNewReconciler: !1
};
function createCapturedValue(value, source) {
@ -4273,8 +4299,8 @@ function bubbleProperties(completedWork) {
if (didBailout)
for (var child$36 = completedWork.child; null !== child$36; )
(newChildLanes |= child$36.lanes | child$36.childLanes),
(subtreeFlags |= child$36.subtreeFlags & 7340032),
(subtreeFlags |= child$36.flags & 7340032),
(subtreeFlags |= child$36.subtreeFlags & 14680064),
(subtreeFlags |= child$36.flags & 14680064),
(child$36.return = completedWork),
(child$36 = child$36.sibling);
else
@ -4290,6 +4316,7 @@ function bubbleProperties(completedWork) {
}
function completeWork(current, workInProgress, renderLanes) {
var newProps = workInProgress.pendingProps;
popTreeContext(workInProgress);
switch (workInProgress.tag) {
case 2:
case 16:
@ -4434,7 +4461,7 @@ function completeWork(current, workInProgress, renderLanes) {
workInProgressRootExitStatus = 4;
null === workInProgressRoot ||
(0 === (workInProgressRootSkippedLanes & 268435455) &&
0 === (workInProgressRootUpdatedLanes & 268435455)) ||
0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) ||
markRootSuspended$1(
workInProgressRoot,
workInProgressRootRenderLanes
@ -4489,7 +4516,7 @@ function completeWork(current, workInProgress, renderLanes) {
for (newProps = workInProgress.child; null !== newProps; )
(renderLanes = newProps),
(type = current),
(renderLanes.flags &= 7340034),
(renderLanes.flags &= 14680066),
(updatePayload = renderLanes.alternate),
null === updatePayload
? ((renderLanes.childLanes = 0),
@ -5070,7 +5097,7 @@ function pushHostRootContext(workInProgress) {
pushTopLevelContextObject(workInProgress, root.context, !1);
pushHostContainer(workInProgress, root.containerInfo);
}
var SUSPENDED_MARKER = { dehydrated: null, retryLane: 0 };
var SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 };
function mountSuspenseOffscreenState(renderLanes) {
return { baseLanes: renderLanes, cachePool: null };
}
@ -5263,7 +5290,7 @@ function updateSuspenseFallbackChildren(
(primaryChildren.pendingProps = primaryChildProps),
(workInProgress.deletions = null))
: ((primaryChildren = createWorkInProgress(current, primaryChildProps)),
(primaryChildren.subtreeFlags = current.subtreeFlags & 7340032));
(primaryChildren.subtreeFlags = current.subtreeFlags & 14680064));
null !== currentFallbackChildFragment
? (fallbackChildren = createWorkInProgress(
currentFallbackChildFragment,
@ -5487,6 +5514,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
}
function unwindWork(workInProgress) {
popTreeContext(workInProgress);
switch (workInProgress.tag) {
case 1:
isContextProvider(workInProgress.type) && popContext();
@ -5544,6 +5572,13 @@ function safelyDetachRef(current, nearestMountedAncestor) {
}
else ref.current = null;
}
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
try {
destroy();
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
}
}
var shouldFireAfterActiveInstanceBlur = !1;
function commitBeforeMutationEffects(root, firstChild) {
for (nextEffect = firstChild; null !== nextEffect; )
@ -5608,7 +5643,7 @@ function commitBeforeMutationEffects(root, firstChild) {
function commitHookEffectListUnmount(
flags,
finishedWork,
nearestMountedAncestor$jscomp$0
nearestMountedAncestor
) {
var updateQueue = finishedWork.updateQueue;
updateQueue = null !== updateQueue ? updateQueue.lastEffect : null;
@ -5618,27 +5653,20 @@ function commitHookEffectListUnmount(
if ((effect.tag & flags) === flags) {
var destroy = effect.destroy;
effect.destroy = void 0;
if (void 0 !== destroy) {
var current = finishedWork,
nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
try {
destroy();
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
}
}
void 0 !== destroy &&
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);
}
effect = effect.next;
} while (effect !== updateQueue);
}
}
function commitHookEffectListMount(tag, finishedWork) {
function commitHookEffectListMount(flags, finishedWork) {
finishedWork = finishedWork.updateQueue;
finishedWork = null !== finishedWork ? finishedWork.lastEffect : null;
if (null !== finishedWork) {
var effect = (finishedWork = finishedWork.next);
do {
if ((effect.tag & tag) === tag) {
if ((effect.tag & flags) === flags) {
var create$80 = effect.create;
effect.destroy = create$80();
}
@ -5646,7 +5674,7 @@ function commitHookEffectListMount(tag, finishedWork) {
} while (effect !== finishedWork);
}
}
function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount)
try {
injectedHook.onCommitFiberUnmount(rendererID, current);
@ -5666,24 +5694,17 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
var _effect = effect,
destroy = _effect.destroy;
_effect = _effect.tag;
if (
void 0 !== destroy &&
(0 !== (_effect & 2) || 0 !== (_effect & 4))
) {
_effect = current;
var nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
try {
destroy();
} catch (error) {
captureCommitPhaseError(_effect, nearestMountedAncestor, error);
}
}
void 0 !== destroy &&
(0 !== (_effect & 2)
? safelyCallDestroy(current, nearestMountedAncestor, destroy)
: 0 !== (_effect & 4) &&
safelyCallDestroy(current, nearestMountedAncestor, destroy));
effect = effect.next;
} while (effect !== finishedRoot);
}
break;
case 1:
safelyDetachRef(current, nearestMountedAncestor$jscomp$0);
safelyDetachRef(current, nearestMountedAncestor);
finishedRoot = current.stateNode;
if ("function" === typeof finishedRoot.componentWillUnmount)
try {
@ -5691,22 +5712,14 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
(finishedRoot.state = current.memoizedState),
finishedRoot.componentWillUnmount();
} catch (error) {
captureCommitPhaseError(
current,
nearestMountedAncestor$jscomp$0,
error
);
captureCommitPhaseError(current, nearestMountedAncestor, error);
}
break;
case 5:
safelyDetachRef(current, nearestMountedAncestor$jscomp$0);
safelyDetachRef(current, nearestMountedAncestor);
break;
case 4:
unmountHostComponents(
finishedRoot,
current,
nearestMountedAncestor$jscomp$0
);
unmountHostComponents(finishedRoot, current, nearestMountedAncestor);
}
}
function detachFiberAfterEffects(fiber) {
@ -6340,7 +6353,8 @@ var ceil = Math.ceil,
workInProgressRootExitStatus = 0,
workInProgressRootFatalError = null,
workInProgressRootSkippedLanes = 0,
workInProgressRootUpdatedLanes = 0,
workInProgressRootInterleavedUpdatedLanes = 0,
workInProgressRootRenderPhaseUpdatedLanes = 0,
workInProgressRootPingedLanes = 0,
globalMostRecentFallbackTime = 0,
workInProgressRootRenderTargetTime = Infinity,
@ -6387,16 +6401,19 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
var root = markUpdateLaneFromFiberToRoot(fiber, lane);
if (null === root) return null;
markRootUpdated(root, lane, eventTime);
root === workInProgressRoot &&
(0 === (executionContext & 2) && (workInProgressRootUpdatedLanes |= lane),
4 === workInProgressRootExitStatus &&
markRootSuspended$1(root, workInProgressRootRenderLanes));
ensureRootIsScheduled(root, eventTime);
1 === lane &&
0 === executionContext &&
0 === (fiber.mode & 1) &&
((workInProgressRootRenderTargetTime = now() + 500),
includesLegacySyncCallbacks && flushSyncCallbacks());
0 !== (executionContext & 2) && root === workInProgressRoot
? (workInProgressRootRenderPhaseUpdatedLanes |= lane)
: (root === workInProgressRoot &&
(0 === (executionContext & 2) &&
(workInProgressRootInterleavedUpdatedLanes |= lane),
4 === workInProgressRootExitStatus &&
markRootSuspended$1(root, workInProgressRootRenderLanes)),
ensureRootIsScheduled(root, eventTime),
1 === lane &&
0 === executionContext &&
0 === (fiber.mode & 1) &&
((workInProgressRootRenderTargetTime = now() + 500),
includesLegacySyncCallbacks && flushSyncCallbacks()));
return root;
}
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
@ -6643,9 +6660,15 @@ function recoverFromConcurrentError(root, errorRetryLanes) {
var prevExecutionContext = executionContext;
executionContext |= 8;
root.isDehydrated && (root.isDehydrated = !1);
root = renderRootSync(root, errorRetryLanes);
for (
var exitStatus, i = 0;
50 > i &&
((exitStatus = renderRootSync(root, errorRetryLanes)),
2 === exitStatus && 0 !== workInProgressRootRenderPhaseUpdatedLanes);
i++
);
executionContext = prevExecutionContext;
return root;
return exitStatus;
}
function isRenderConsistentWithExternalStores(finishedWork) {
for (var node = finishedWork; ; ) {
@ -6683,7 +6706,7 @@ function isRenderConsistentWithExternalStores(finishedWork) {
}
function markRootSuspended$1(root, suspendedLanes) {
suspendedLanes &= ~workInProgressRootPingedLanes;
suspendedLanes &= ~workInProgressRootUpdatedLanes;
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
root.suspendedLanes |= suspendedLanes;
root.pingedLanes &= ~suspendedLanes;
for (root = root.expirationTimes; 0 < suspendedLanes; ) {
@ -6701,13 +6724,10 @@ function performSyncWorkOnRoot(root) {
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
var exitStatus = renderRootSync(root, lanes);
if (0 !== root.tag && 2 === exitStatus) {
var prevExecutionContext = executionContext;
executionContext |= 8;
root.isDehydrated && (root.isDehydrated = !1);
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
0 !== errorRetryLanes &&
((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes)));
executionContext = prevExecutionContext;
((lanes = errorRetryLanes),
(exitStatus = recoverFromConcurrentError(root, errorRetryLanes)));
}
if (1 === exitStatus)
throw ((exitStatus = workInProgressRootFatalError),
@ -6734,6 +6754,7 @@ function prepareFreshStack(root, lanes) {
if (null !== workInProgress)
for (timeoutHandle = workInProgress.return; null !== timeoutHandle; ) {
var interruptedWork = timeoutHandle;
popTreeContext(interruptedWork);
switch (interruptedWork.tag) {
case 1:
interruptedWork = interruptedWork.type.childContextTypes;
@ -6773,7 +6794,7 @@ function prepareFreshStack(root, lanes) {
workInProgressRootRenderLanes = subtreeRenderLanes = lanes;
workInProgressRootExitStatus = 0;
workInProgressRootFatalError = null;
workInProgressRootPingedLanes = workInProgressRootUpdatedLanes = workInProgressRootSkippedLanes = 0;
workInProgressRootPingedLanes = workInProgressRootRenderPhaseUpdatedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0;
if (null !== interleavedQueues) {
for (root = 0; root < interleavedQueues.length; root++)
if (
@ -6852,69 +6873,67 @@ function handleError(root$jscomp$0, thrownValue) {
}
b: {
sourceFiber$jscomp$0 = returnFiber;
var sourceFiber$jscomp$1 = sourceFiber,
rootRenderLanes = thrownValue,
hasInvisibleParentBoundary =
0 !== (suspenseStackCursor.current & 1),
node = sourceFiber$jscomp$0;
var hasInvisibleParentBoundary =
0 !== (suspenseStackCursor.current & 1);
do {
var JSCompiler_temp;
if ((JSCompiler_temp = 13 === node.tag)) {
var nextState = node.memoizedState;
if ((JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag)) {
var nextState = sourceFiber$jscomp$0.memoizedState;
JSCompiler_temp =
null !== nextState
? null !== nextState.dehydrated
? !0
: !1
: !0 !== node.memoizedProps.unstable_avoidThisFallback
: !0 !==
sourceFiber$jscomp$0.memoizedProps
.unstable_avoidThisFallback
? !0
: hasInvisibleParentBoundary
? !1
: !0;
}
if (JSCompiler_temp) {
if (0 === (node.mode & 1)) {
if (node === sourceFiber$jscomp$0) node.flags |= 65536;
else {
node.flags |= 128;
sourceFiber$jscomp$1.flags |= 131072;
sourceFiber$jscomp$1.flags &= -52805;
if (1 === sourceFiber$jscomp$1.tag)
if (null === sourceFiber$jscomp$1.alternate)
sourceFiber$jscomp$1.tag = 17;
else {
var update = createUpdate(-1, 1);
update.tag = 2;
enqueueUpdate(sourceFiber$jscomp$1, update);
}
sourceFiber$jscomp$1.lanes |= 1;
}
var suspenseBoundary = node;
break b;
}
node.flags |= 65536;
node.lanes = rootRenderLanes;
suspenseBoundary = node;
var suspenseBoundary = sourceFiber$jscomp$0;
break b;
}
node = node.return;
} while (null !== node);
sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return;
} while (null !== sourceFiber$jscomp$0);
suspenseBoundary = null;
}
if (null !== suspenseBoundary) {
value = void 0;
sourceFiber = suspenseBoundary;
if (sourceFiber.mode & 1) {
suspenseBoundary.flags &= -257;
value = suspenseBoundary;
sourceFiber$jscomp$0 = thrownValue;
if (0 === (value.mode & 1))
if (value === returnFiber) value.flags |= 65536;
else {
value.flags |= 128;
sourceFiber.flags |= 131072;
sourceFiber.flags &= -52805;
if (1 === sourceFiber.tag)
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
else {
var update = createUpdate(-1, 1);
update.tag = 2;
enqueueUpdate(sourceFiber, update);
}
sourceFiber.lanes |= 1;
}
else (value.flags |= 65536), (value.lanes = sourceFiber$jscomp$0);
sourceFiber = void 0;
value = suspenseBoundary;
if (value.mode & 1) {
var pingCache = root.pingCache;
null === pingCache
? ((pingCache = root.pingCache = new PossiblyWeakMap()),
(value = new Set()),
pingCache.set(wakeable, value))
: ((value = pingCache.get(wakeable)),
void 0 === value &&
((value = new Set()), pingCache.set(wakeable, value)));
if (!value.has(thrownValue)) {
value.add(thrownValue);
(sourceFiber = new Set()),
pingCache.set(wakeable, sourceFiber))
: ((sourceFiber = pingCache.get(wakeable)),
void 0 === sourceFiber &&
((sourceFiber = new Set()),
pingCache.set(wakeable, sourceFiber)));
if (!sourceFiber.has(thrownValue)) {
sourceFiber.add(thrownValue);
var ping = pingSuspendedRoot.bind(
null,
root,
@ -6924,11 +6943,11 @@ function handleError(root$jscomp$0, thrownValue) {
wakeable.then(ping, ping);
}
}
var wakeables = sourceFiber.updateQueue;
var wakeables = value.updateQueue;
if (null === wakeables) {
var updateQueue = new Set();
updateQueue.add(wakeable);
sourceFiber.updateQueue = updateQueue;
value.updateQueue = updateQueue;
} else wakeables.add(wakeable);
break a;
} else
@ -7875,7 +7894,7 @@ function createWorkInProgress(current, pendingProps) {
(workInProgress.flags = 0),
(workInProgress.subtreeFlags = 0),
(workInProgress.deletions = null));
workInProgress.flags = current.flags & 7340032;
workInProgress.flags = current.flags & 14680064;
workInProgress.childLanes = current.childLanes;
workInProgress.lanes = current.lanes;
workInProgress.child = current.child;
@ -8231,10 +8250,10 @@ batchedUpdatesImpl = function(fn, a) {
}
};
var roots = new Map(),
devToolsConfig$jscomp$inline_976 = {
devToolsConfig$jscomp$inline_966 = {
findFiberByHostInstance: getInstanceFromTag,
bundleType: 0,
version: "18.0.0-afcb9cdc9-20211008",
version: "18.0.0-c0c71a868-20211112",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForViewTag: function() {
@ -8249,11 +8268,11 @@ var roots = new Map(),
}.bind(null, findNodeHandle)
}
};
var internals$jscomp$inline_1240 = {
bundleType: devToolsConfig$jscomp$inline_976.bundleType,
version: devToolsConfig$jscomp$inline_976.version,
rendererPackageName: devToolsConfig$jscomp$inline_976.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_976.rendererConfig,
var internals$jscomp$inline_1230 = {
bundleType: devToolsConfig$jscomp$inline_966.bundleType,
version: devToolsConfig$jscomp$inline_966.version,
rendererPackageName: devToolsConfig$jscomp$inline_966.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_966.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@ -8269,26 +8288,26 @@ var internals$jscomp$inline_1240 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_976.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_966.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.0.0-afcb9cdc9-20211008"
reconcilerVersion: "18.0.0-c0c71a868-20211112"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1241 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1231 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1241.isDisabled &&
hook$jscomp$inline_1241.supportsFiber
!hook$jscomp$inline_1231.isDisabled &&
hook$jscomp$inline_1231.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1241.inject(
internals$jscomp$inline_1240
(rendererID = hook$jscomp$inline_1231.inject(
internals$jscomp$inline_1230
)),
(injectedHook = hook$jscomp$inline_1241);
(injectedHook = hook$jscomp$inline_1231);
} catch (err) {}
}
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {

Разница между файлами не показана из-за своего большого размера Загрузить разницу