mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[Fiber] Move updatePriority tracking to renderers (#28751)
Currently updatePriority is tracked in the reconciler. `flushSync` is going to be implemented reconciler agnostic soon and we need to move the tracking of this state to the renderer and out of reconciler. This change implements new renderer bin dings for getCurrentUpdatePriority and setCurrentUpdatePriority. I was originally going to have the getter also do the event priority defaulting using window.event so we eliminate getCur rentEventPriority but this makes all the callsites where we store the true current updatePriority on the stack harder to work with so for now they remain separate. I also moved runWithPriority to the renderer since it really belongs whereever the state is being managed and it is only currently exposed in the DOM renderer. Additionally the current update priority is not stored on ReactDOMSharedInternals. While not particularly meaningful in this change it opens the door to implementing `flushSync` outside of the reconciler DiffTrain build for commit https://github.com/facebook/react/commit/8e1462e8c471fbec98aac2b3e1326498d0ff7139.
This commit is contained in:
+24
-33
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<5dd37abeea74ddd8ec0ebe6450152a2d>>
|
||||
* @generated SignedSource<<7d40122affc60fd6dee01dfb5006f923>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -2316,17 +2316,11 @@ if (__DEV__) {
|
||||
}
|
||||
}
|
||||
|
||||
var NoEventPriority = NoLane;
|
||||
var DiscreteEventPriority = SyncLane;
|
||||
var ContinuousEventPriority = InputContinuousLane;
|
||||
var DefaultEventPriority = DefaultLane;
|
||||
var IdleEventPriority = IdleLane;
|
||||
var currentUpdatePriority = NoLane;
|
||||
function getCurrentUpdatePriority() {
|
||||
return currentUpdatePriority;
|
||||
}
|
||||
function setCurrentUpdatePriority(newPriority) {
|
||||
currentUpdatePriority = newPriority;
|
||||
}
|
||||
function higherEventPriority(a, b) {
|
||||
return a !== 0 && a < b ? a : b;
|
||||
}
|
||||
@@ -2336,6 +2330,9 @@ if (__DEV__) {
|
||||
function isHigherEventPriority(a, b) {
|
||||
return a !== 0 && a < b;
|
||||
}
|
||||
function eventPriorityToLane(updatePriority) {
|
||||
return updatePriority;
|
||||
}
|
||||
function lanesToEventPriority(lanes) {
|
||||
var lane = getHighestPriorityLane(lanes);
|
||||
|
||||
@@ -2493,7 +2490,18 @@ if (__DEV__) {
|
||||
tag: "TEXT"
|
||||
};
|
||||
}
|
||||
function getCurrentEventPriority() {
|
||||
var currentUpdatePriority = NoEventPriority;
|
||||
function setCurrentUpdatePriority(newPriority) {
|
||||
currentUpdatePriority = newPriority;
|
||||
}
|
||||
function getCurrentUpdatePriority() {
|
||||
return currentUpdatePriority;
|
||||
}
|
||||
function resolveUpdatePriority() {
|
||||
if (currentUpdatePriority !== NoEventPriority) {
|
||||
return currentUpdatePriority;
|
||||
}
|
||||
|
||||
return DefaultEventPriority;
|
||||
}
|
||||
function shouldAttemptEagerTransition() {
|
||||
@@ -22567,26 +22575,9 @@ if (__DEV__) {
|
||||
: // is the first update in that scope. Either way, we need to get a
|
||||
// fresh transition lane.
|
||||
requestTransitionLane();
|
||||
} // Updates originating inside certain React methods, like flushSync, have
|
||||
// their priority set by tracking it with a context variable.
|
||||
//
|
||||
// The opaque type returned by the host config is internally a lane, so we can
|
||||
// use that directly.
|
||||
// TODO: Move this type conversion to the event priority module.
|
||||
}
|
||||
|
||||
var updateLane = getCurrentUpdatePriority();
|
||||
|
||||
if (updateLane !== NoLane) {
|
||||
return updateLane;
|
||||
} // This update originated outside React. Ask the host environment for an
|
||||
// appropriate priority, based on the type of event.
|
||||
//
|
||||
// The opaque type returned by the host config is internally a lane, so we can
|
||||
// use that directly.
|
||||
// TODO: Move this type conversion to the event priority module.
|
||||
|
||||
var eventLane = getCurrentEventPriority();
|
||||
return eventLane;
|
||||
return eventPriorityToLane(resolveUpdatePriority());
|
||||
}
|
||||
|
||||
function requestRetryLane(fiber) {
|
||||
@@ -23292,8 +23283,8 @@ if (__DEV__) {
|
||||
var previousPriority = getCurrentUpdatePriority();
|
||||
|
||||
try {
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
setCurrentUpdatePriority(DiscreteEventPriority);
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
|
||||
if (fn) {
|
||||
return fn();
|
||||
@@ -24398,12 +24389,12 @@ if (__DEV__) {
|
||||
) {
|
||||
// TODO: This no longer makes any sense. We already wrap the mutation and
|
||||
// layout phases. Should be able to remove.
|
||||
var previousUpdateLanePriority = getCurrentUpdatePriority();
|
||||
var prevTransition = ReactCurrentBatchConfig.transition;
|
||||
var previousUpdateLanePriority = getCurrentUpdatePriority();
|
||||
|
||||
try {
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
setCurrentUpdatePriority(DiscreteEventPriority);
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -24768,8 +24759,8 @@ if (__DEV__) {
|
||||
var previousPriority = getCurrentUpdatePriority();
|
||||
|
||||
try {
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
setCurrentUpdatePriority(priority);
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
return flushPassiveEffectsImpl();
|
||||
} finally {
|
||||
setCurrentUpdatePriority(previousPriority);
|
||||
@@ -26624,7 +26615,7 @@ if (__DEV__) {
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "19.0.0-canary-dd665447";
|
||||
var ReactVersion = "19.0.0-canary-33793d9f";
|
||||
|
||||
/*
|
||||
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
|
||||
|
||||
+32
-33
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<000f349e62b33714c1beb5b32a865608>>
|
||||
* @generated SignedSource<<c59ed5cae3404a53f31f2928d4976364>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -509,7 +509,6 @@ function markRootEntangled(root, entangledLanes) {
|
||||
rootEntangledLanes &= ~lane;
|
||||
}
|
||||
}
|
||||
var currentUpdatePriority = 0;
|
||||
function lanesToEventPriority(lanes) {
|
||||
lanes &= -lanes;
|
||||
return 2 < lanes
|
||||
@@ -551,7 +550,8 @@ function insertBefore(parentInstance, child, beforeChild) {
|
||||
beforeChild = parentInstance.children.indexOf(beforeChild);
|
||||
parentInstance.children.splice(beforeChild, 0, child);
|
||||
}
|
||||
var scheduleTimeout = setTimeout,
|
||||
var currentUpdatePriority = 0,
|
||||
scheduleTimeout = setTimeout,
|
||||
cancelTimeout = clearTimeout,
|
||||
valueStack = [],
|
||||
index = -1;
|
||||
@@ -7423,8 +7423,8 @@ function requestUpdateLane(fiber) {
|
||||
(fiber = currentEntangledLane),
|
||||
0 !== fiber ? fiber : requestTransitionLane()
|
||||
);
|
||||
fiber = currentUpdatePriority;
|
||||
return 0 !== fiber ? fiber : 32;
|
||||
fiber = 0 !== currentUpdatePriority ? currentUpdatePriority : 32;
|
||||
return fiber;
|
||||
}
|
||||
function requestDeferredLane() {
|
||||
0 === workInProgressDeferredLane &&
|
||||
@@ -7744,8 +7744,8 @@ function flushSync(fn) {
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
if (
|
||||
((ReactCurrentBatchConfig.transition = null),
|
||||
(currentUpdatePriority = 2),
|
||||
((currentUpdatePriority = 2),
|
||||
(ReactCurrentBatchConfig.transition = null),
|
||||
fn)
|
||||
)
|
||||
return fn();
|
||||
@@ -8179,11 +8179,11 @@ function commitRoot(
|
||||
didIncludeRenderPhaseUpdate,
|
||||
spawnedLane
|
||||
) {
|
||||
var previousUpdateLanePriority = currentUpdatePriority,
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
var prevTransition = ReactCurrentBatchConfig.transition,
|
||||
previousUpdateLanePriority = currentUpdatePriority;
|
||||
try {
|
||||
(ReactCurrentBatchConfig.transition = null),
|
||||
(currentUpdatePriority = 2),
|
||||
(currentUpdatePriority = 2),
|
||||
(ReactCurrentBatchConfig.transition = null),
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -8299,16 +8299,15 @@ function flushPassiveEffects() {
|
||||
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
||||
pendingPassiveEffectsRemainingLanes = 0;
|
||||
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
|
||||
priority = 32 > renderPriority ? 32 : renderPriority;
|
||||
renderPriority = ReactCurrentBatchConfig.transition;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
prevTransition = ReactCurrentBatchConfig.transition,
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
currentUpdatePriority = 32 > renderPriority ? 32 : renderPriority;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
currentUpdatePriority = priority;
|
||||
if (null === rootWithPendingPassiveEffects)
|
||||
var JSCompiler_inline_result = !1;
|
||||
else {
|
||||
priority = pendingPassiveTransitions;
|
||||
renderPriority = pendingPassiveTransitions;
|
||||
pendingPassiveTransitions = null;
|
||||
var root$jscomp$0 = rootWithPendingPassiveEffects,
|
||||
lanes = pendingPassiveEffectsLanes;
|
||||
@@ -8323,7 +8322,7 @@ function flushPassiveEffects() {
|
||||
root$jscomp$0,
|
||||
root$jscomp$0.current,
|
||||
lanes,
|
||||
priority
|
||||
renderPriority
|
||||
);
|
||||
executionContext = prevExecutionContext;
|
||||
flushSyncWorkAcrossRoots_impl(!1);
|
||||
@@ -8339,7 +8338,7 @@ function flushPassiveEffects() {
|
||||
return JSCompiler_inline_result;
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
(ReactCurrentBatchConfig.transition = renderPriority),
|
||||
(ReactCurrentBatchConfig.transition = prevTransition),
|
||||
releaseRootPooledCache(root, remainingLanes);
|
||||
}
|
||||
}
|
||||
@@ -9149,19 +9148,19 @@ function wrapFiber(fiber) {
|
||||
fiberToWrapper.set(fiber, wrapper));
|
||||
return wrapper;
|
||||
}
|
||||
var devToolsConfig$jscomp$inline_994 = {
|
||||
var devToolsConfig$jscomp$inline_996 = {
|
||||
findFiberByHostInstance: function () {
|
||||
throw Error("TestRenderer does not support findFiberByHostInstance()");
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "19.0.0-canary-f60d093a",
|
||||
version: "19.0.0-canary-a6279bb7",
|
||||
rendererPackageName: "react-test-renderer"
|
||||
};
|
||||
var internals$jscomp$inline_1214 = {
|
||||
bundleType: devToolsConfig$jscomp$inline_994.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_994.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_994.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_994.rendererConfig,
|
||||
var internals$jscomp$inline_1216 = {
|
||||
bundleType: devToolsConfig$jscomp$inline_996.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_996.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_996.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_996.rendererConfig,
|
||||
overrideHookState: null,
|
||||
overrideHookStateDeletePath: null,
|
||||
overrideHookStateRenamePath: null,
|
||||
@@ -9178,26 +9177,26 @@ var internals$jscomp$inline_1214 = {
|
||||
return null === fiber ? null : fiber.stateNode;
|
||||
},
|
||||
findFiberByHostInstance:
|
||||
devToolsConfig$jscomp$inline_994.findFiberByHostInstance ||
|
||||
devToolsConfig$jscomp$inline_996.findFiberByHostInstance ||
|
||||
emptyFindFiberByHostInstance,
|
||||
findHostInstancesForRefresh: null,
|
||||
scheduleRefresh: null,
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "19.0.0-canary-f60d093a"
|
||||
reconcilerVersion: "19.0.0-canary-a6279bb7"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1215 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
var hook$jscomp$inline_1217 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (
|
||||
!hook$jscomp$inline_1215.isDisabled &&
|
||||
hook$jscomp$inline_1215.supportsFiber
|
||||
!hook$jscomp$inline_1217.isDisabled &&
|
||||
hook$jscomp$inline_1217.supportsFiber
|
||||
)
|
||||
try {
|
||||
(rendererID = hook$jscomp$inline_1215.inject(
|
||||
internals$jscomp$inline_1214
|
||||
(rendererID = hook$jscomp$inline_1217.inject(
|
||||
internals$jscomp$inline_1216
|
||||
)),
|
||||
(injectedHook = hook$jscomp$inline_1215);
|
||||
(injectedHook = hook$jscomp$inline_1217);
|
||||
} catch (err) {}
|
||||
}
|
||||
exports._Scheduler = Scheduler;
|
||||
|
||||
+29
-30
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<b9d1eed3b9bd859cc782a84afe6d9a15>>
|
||||
* @generated SignedSource<<d579b23be98702834f1877ba69ecd091>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -597,7 +597,6 @@ function markRootEntangled(root, entangledLanes) {
|
||||
rootEntangledLanes &= ~lane;
|
||||
}
|
||||
}
|
||||
var currentUpdatePriority = 0;
|
||||
function lanesToEventPriority(lanes) {
|
||||
lanes &= -lanes;
|
||||
return 2 < lanes
|
||||
@@ -639,7 +638,8 @@ function insertBefore(parentInstance, child, beforeChild) {
|
||||
beforeChild = parentInstance.children.indexOf(beforeChild);
|
||||
parentInstance.children.splice(beforeChild, 0, child);
|
||||
}
|
||||
var scheduleTimeout = setTimeout,
|
||||
var currentUpdatePriority = 0,
|
||||
scheduleTimeout = setTimeout,
|
||||
cancelTimeout = clearTimeout,
|
||||
valueStack = [],
|
||||
index = -1;
|
||||
@@ -7894,8 +7894,8 @@ function requestUpdateLane(fiber) {
|
||||
(fiber = currentEntangledLane),
|
||||
0 !== fiber ? fiber : requestTransitionLane()
|
||||
);
|
||||
fiber = currentUpdatePriority;
|
||||
return 0 !== fiber ? fiber : 32;
|
||||
fiber = 0 !== currentUpdatePriority ? currentUpdatePriority : 32;
|
||||
return fiber;
|
||||
}
|
||||
function requestDeferredLane() {
|
||||
0 === workInProgressDeferredLane &&
|
||||
@@ -8218,8 +8218,8 @@ function flushSync(fn) {
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
if (
|
||||
((ReactCurrentBatchConfig.transition = null),
|
||||
(currentUpdatePriority = 2),
|
||||
((currentUpdatePriority = 2),
|
||||
(ReactCurrentBatchConfig.transition = null),
|
||||
fn)
|
||||
)
|
||||
return fn();
|
||||
@@ -8711,11 +8711,11 @@ function commitRoot(
|
||||
didIncludeRenderPhaseUpdate,
|
||||
spawnedLane
|
||||
) {
|
||||
var previousUpdateLanePriority = currentUpdatePriority,
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
var prevTransition = ReactCurrentBatchConfig.transition,
|
||||
previousUpdateLanePriority = currentUpdatePriority;
|
||||
try {
|
||||
(ReactCurrentBatchConfig.transition = null),
|
||||
(currentUpdatePriority = 2),
|
||||
(currentUpdatePriority = 2),
|
||||
(ReactCurrentBatchConfig.transition = null),
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -8845,18 +8845,17 @@ function flushPassiveEffects() {
|
||||
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
||||
pendingPassiveEffectsRemainingLanes = 0;
|
||||
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
|
||||
priority = 32 > renderPriority ? 32 : renderPriority;
|
||||
renderPriority = ReactCurrentBatchConfig.transition;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
prevTransition = ReactCurrentBatchConfig.transition,
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
currentUpdatePriority = 32 > renderPriority ? 32 : renderPriority;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
currentUpdatePriority = priority;
|
||||
if (null === rootWithPendingPassiveEffects)
|
||||
var JSCompiler_inline_result = !1;
|
||||
else {
|
||||
var transitions = pendingPassiveTransitions;
|
||||
pendingPassiveTransitions = null;
|
||||
priority = rootWithPendingPassiveEffects;
|
||||
renderPriority = rootWithPendingPassiveEffects;
|
||||
var lanes = pendingPassiveEffectsLanes;
|
||||
rootWithPendingPassiveEffects = null;
|
||||
pendingPassiveEffectsLanes = 0;
|
||||
@@ -8868,10 +8867,10 @@ function flushPassiveEffects() {
|
||||
injectedProfilingHooks.markPassiveEffectsStarted(lanes);
|
||||
var prevExecutionContext = executionContext;
|
||||
executionContext |= 4;
|
||||
commitPassiveUnmountOnFiber(priority.current);
|
||||
commitPassiveUnmountOnFiber(renderPriority.current);
|
||||
commitPassiveMountOnFiber(
|
||||
priority,
|
||||
priority.current,
|
||||
renderPriority,
|
||||
renderPriority.current,
|
||||
lanes,
|
||||
transitions
|
||||
);
|
||||
@@ -8919,9 +8918,9 @@ function flushPassiveEffects() {
|
||||
"function" === typeof injectedHook.onPostCommitFiberRoot
|
||||
)
|
||||
try {
|
||||
injectedHook.onPostCommitFiberRoot(rendererID, priority);
|
||||
injectedHook.onPostCommitFiberRoot(rendererID, renderPriority);
|
||||
} catch (err) {}
|
||||
var stateNode = priority.current.stateNode;
|
||||
var stateNode = renderPriority.current.stateNode;
|
||||
stateNode.effectDuration = 0;
|
||||
stateNode.passiveEffectDuration = 0;
|
||||
JSCompiler_inline_result = !0;
|
||||
@@ -8929,7 +8928,7 @@ function flushPassiveEffects() {
|
||||
return JSCompiler_inline_result;
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
(ReactCurrentBatchConfig.transition = renderPriority),
|
||||
(ReactCurrentBatchConfig.transition = prevTransition),
|
||||
releaseRootPooledCache(root, remainingLanes);
|
||||
}
|
||||
}
|
||||
@@ -9765,12 +9764,12 @@ function wrapFiber(fiber) {
|
||||
fiberToWrapper.set(fiber, wrapper));
|
||||
return wrapper;
|
||||
}
|
||||
var devToolsConfig$jscomp$inline_1078 = {
|
||||
var devToolsConfig$jscomp$inline_1080 = {
|
||||
findFiberByHostInstance: function () {
|
||||
throw Error("TestRenderer does not support findFiberByHostInstance()");
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "19.0.0-canary-461e8e8d",
|
||||
version: "19.0.0-canary-e4931763",
|
||||
rendererPackageName: "react-test-renderer"
|
||||
};
|
||||
(function (internals) {
|
||||
@@ -9787,10 +9786,10 @@ var devToolsConfig$jscomp$inline_1078 = {
|
||||
} catch (err) {}
|
||||
return hook.checkDCE ? !0 : !1;
|
||||
})({
|
||||
bundleType: devToolsConfig$jscomp$inline_1078.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1078.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1078.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1078.rendererConfig,
|
||||
bundleType: devToolsConfig$jscomp$inline_1080.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1080.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1080.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1080.rendererConfig,
|
||||
overrideHookState: null,
|
||||
overrideHookStateDeletePath: null,
|
||||
overrideHookStateRenamePath: null,
|
||||
@@ -9807,14 +9806,14 @@ var devToolsConfig$jscomp$inline_1078 = {
|
||||
return null === fiber ? null : fiber.stateNode;
|
||||
},
|
||||
findFiberByHostInstance:
|
||||
devToolsConfig$jscomp$inline_1078.findFiberByHostInstance ||
|
||||
devToolsConfig$jscomp$inline_1080.findFiberByHostInstance ||
|
||||
emptyFindFiberByHostInstance,
|
||||
findHostInstancesForRefresh: null,
|
||||
scheduleRefresh: null,
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "19.0.0-canary-461e8e8d"
|
||||
reconcilerVersion: "19.0.0-canary-e4931763"
|
||||
});
|
||||
exports._Scheduler = Scheduler;
|
||||
exports.act = act;
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
0b3b8a6a354b90fe76a9d82bb34487e5d2f71203
|
||||
8e1462e8c471fbec98aac2b3e1326498d0ff7139
|
||||
|
||||
+24
-33
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<4a4d1580791e4b04df69f1d39838d86e>>
|
||||
* @generated SignedSource<<6ee9d845426852411c7db2d3c69dc37d>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -4643,17 +4643,11 @@ to return true:wantsResponderID| |
|
||||
}
|
||||
}
|
||||
|
||||
var NoEventPriority = NoLane;
|
||||
var DiscreteEventPriority = SyncLane;
|
||||
var ContinuousEventPriority = InputContinuousLane;
|
||||
var DefaultEventPriority = DefaultLane;
|
||||
var IdleEventPriority = IdleLane;
|
||||
var currentUpdatePriority = NoLane;
|
||||
function getCurrentUpdatePriority() {
|
||||
return currentUpdatePriority;
|
||||
}
|
||||
function setCurrentUpdatePriority(newPriority) {
|
||||
currentUpdatePriority = newPriority;
|
||||
}
|
||||
function higherEventPriority(a, b) {
|
||||
return a !== 0 && a < b ? a : b;
|
||||
}
|
||||
@@ -4663,6 +4657,9 @@ to return true:wantsResponderID| |
|
||||
function isHigherEventPriority(a, b) {
|
||||
return a !== 0 && a < b;
|
||||
}
|
||||
function eventPriorityToLane(updatePriority) {
|
||||
return updatePriority;
|
||||
}
|
||||
function lanesToEventPriority(lanes) {
|
||||
var lane = getHighestPriorityLane(lanes);
|
||||
|
||||
@@ -4904,7 +4901,18 @@ to return true:wantsResponderID| |
|
||||
// More context @ github.com/facebook/react/pull/8560#discussion_r92111303
|
||||
return false;
|
||||
}
|
||||
function getCurrentEventPriority() {
|
||||
var currentUpdatePriority = NoEventPriority;
|
||||
function setCurrentUpdatePriority(newPriority) {
|
||||
currentUpdatePriority = newPriority;
|
||||
}
|
||||
function getCurrentUpdatePriority() {
|
||||
return currentUpdatePriority;
|
||||
}
|
||||
function resolveUpdatePriority() {
|
||||
if (currentUpdatePriority !== NoEventPriority) {
|
||||
return currentUpdatePriority;
|
||||
}
|
||||
|
||||
var currentEventPriority = fabricGetCurrentEventPriority
|
||||
? fabricGetCurrentEventPriority()
|
||||
: null;
|
||||
@@ -26029,26 +26037,9 @@ to return true:wantsResponderID| |
|
||||
: // is the first update in that scope. Either way, we need to get a
|
||||
// fresh transition lane.
|
||||
requestTransitionLane();
|
||||
} // Updates originating inside certain React methods, like flushSync, have
|
||||
// their priority set by tracking it with a context variable.
|
||||
//
|
||||
// The opaque type returned by the host config is internally a lane, so we can
|
||||
// use that directly.
|
||||
// TODO: Move this type conversion to the event priority module.
|
||||
}
|
||||
|
||||
var updateLane = getCurrentUpdatePriority();
|
||||
|
||||
if (updateLane !== NoLane) {
|
||||
return updateLane;
|
||||
} // This update originated outside React. Ask the host environment for an
|
||||
// appropriate priority, based on the type of event.
|
||||
//
|
||||
// The opaque type returned by the host config is internally a lane, so we can
|
||||
// use that directly.
|
||||
// TODO: Move this type conversion to the event priority module.
|
||||
|
||||
var eventLane = getCurrentEventPriority();
|
||||
return eventLane;
|
||||
return eventPriorityToLane(resolveUpdatePriority());
|
||||
}
|
||||
|
||||
function requestRetryLane(fiber) {
|
||||
@@ -26791,8 +26782,8 @@ to return true:wantsResponderID| |
|
||||
var previousPriority = getCurrentUpdatePriority();
|
||||
|
||||
try {
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
setCurrentUpdatePriority(DiscreteEventPriority);
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
|
||||
if (fn) {
|
||||
return fn();
|
||||
@@ -27931,12 +27922,12 @@ to return true:wantsResponderID| |
|
||||
) {
|
||||
// TODO: This no longer makes any sense. We already wrap the mutation and
|
||||
// layout phases. Should be able to remove.
|
||||
var previousUpdateLanePriority = getCurrentUpdatePriority();
|
||||
var prevTransition = ReactCurrentBatchConfig.transition;
|
||||
var previousUpdateLanePriority = getCurrentUpdatePriority();
|
||||
|
||||
try {
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
setCurrentUpdatePriority(DiscreteEventPriority);
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -28310,8 +28301,8 @@ to return true:wantsResponderID| |
|
||||
var previousPriority = getCurrentUpdatePriority();
|
||||
|
||||
try {
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
setCurrentUpdatePriority(priority);
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
return flushPassiveEffectsImpl();
|
||||
} finally {
|
||||
setCurrentUpdatePriority(previousPriority);
|
||||
@@ -30318,7 +30309,7 @@ to return true:wantsResponderID| |
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "19.0.0-canary-86741a5e";
|
||||
var ReactVersion = "19.0.0-canary-59b0731f";
|
||||
|
||||
/*
|
||||
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
|
||||
|
||||
+41
-45
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<40b9e8d1940ea7c4aa128e958d245bc0>>
|
||||
* @generated SignedSource<<eec84b75f747535a1064e1235b961647>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -1527,7 +1527,6 @@ function markRootEntangled(root, entangledLanes) {
|
||||
rootEntangledLanes &= ~lane;
|
||||
}
|
||||
}
|
||||
var currentUpdatePriority = 0;
|
||||
function lanesToEventPriority(lanes) {
|
||||
lanes &= -lanes;
|
||||
return 2 < lanes
|
||||
@@ -1586,6 +1585,19 @@ function getPublicInstance(instance) {
|
||||
? instance
|
||||
: null;
|
||||
}
|
||||
var currentUpdatePriority = 0;
|
||||
function resolveUpdatePriority() {
|
||||
if (0 !== currentUpdatePriority) return currentUpdatePriority;
|
||||
var currentEventPriority = fabricGetCurrentEventPriority
|
||||
? fabricGetCurrentEventPriority()
|
||||
: null;
|
||||
if (null != currentEventPriority)
|
||||
switch (currentEventPriority) {
|
||||
case FabricDiscretePriority:
|
||||
return 2;
|
||||
}
|
||||
return 32;
|
||||
}
|
||||
var scheduleTimeout = setTimeout,
|
||||
cancelTimeout = clearTimeout;
|
||||
function cloneHiddenInstance(instance) {
|
||||
@@ -8968,29 +8980,14 @@ var DefaultCacheDispatcher = {
|
||||
nestedUpdateCount = 0,
|
||||
rootWithNestedUpdates = null;
|
||||
function requestUpdateLane(fiber) {
|
||||
if (0 === (fiber.mode & 1)) return 2;
|
||||
if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)
|
||||
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
|
||||
if (null !== requestCurrentTransition())
|
||||
return (
|
||||
(fiber = currentEntangledLane),
|
||||
0 !== fiber ? fiber : requestTransitionLane()
|
||||
);
|
||||
fiber = currentUpdatePriority;
|
||||
if (0 === fiber)
|
||||
a: {
|
||||
fiber = fabricGetCurrentEventPriority
|
||||
? fabricGetCurrentEventPriority()
|
||||
: null;
|
||||
if (null != fiber)
|
||||
switch (fiber) {
|
||||
case FabricDiscretePriority:
|
||||
fiber = 2;
|
||||
break a;
|
||||
}
|
||||
fiber = 32;
|
||||
}
|
||||
return fiber;
|
||||
return 0 === (fiber.mode & 1)
|
||||
? 2
|
||||
: 0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes
|
||||
? workInProgressRootRenderLanes & -workInProgressRootRenderLanes
|
||||
: null !== requestCurrentTransition()
|
||||
? ((fiber = currentEntangledLane),
|
||||
0 !== fiber ? fiber : requestTransitionLane())
|
||||
: resolveUpdatePriority();
|
||||
}
|
||||
function requestDeferredLane() {
|
||||
0 === workInProgressDeferredLane &&
|
||||
@@ -9732,11 +9729,11 @@ function commitRoot(
|
||||
didIncludeRenderPhaseUpdate,
|
||||
spawnedLane
|
||||
) {
|
||||
var previousUpdateLanePriority = currentUpdatePriority,
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
var prevTransition = ReactCurrentBatchConfig.transition,
|
||||
previousUpdateLanePriority = currentUpdatePriority;
|
||||
try {
|
||||
(ReactCurrentBatchConfig.transition = null),
|
||||
(currentUpdatePriority = 2),
|
||||
(currentUpdatePriority = 2),
|
||||
(ReactCurrentBatchConfig.transition = null),
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -9855,16 +9852,15 @@ function flushPassiveEffects() {
|
||||
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
||||
pendingPassiveEffectsRemainingLanes = 0;
|
||||
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
|
||||
priority = 32 > renderPriority ? 32 : renderPriority;
|
||||
renderPriority = ReactCurrentBatchConfig.transition;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
prevTransition = ReactCurrentBatchConfig.transition,
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
currentUpdatePriority = 32 > renderPriority ? 32 : renderPriority;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
currentUpdatePriority = priority;
|
||||
if (null === rootWithPendingPassiveEffects)
|
||||
var JSCompiler_inline_result = !1;
|
||||
else {
|
||||
priority = pendingPassiveTransitions;
|
||||
renderPriority = pendingPassiveTransitions;
|
||||
pendingPassiveTransitions = null;
|
||||
var root$jscomp$0 = rootWithPendingPassiveEffects,
|
||||
lanes = pendingPassiveEffectsLanes;
|
||||
@@ -9879,7 +9875,7 @@ function flushPassiveEffects() {
|
||||
root$jscomp$0,
|
||||
root$jscomp$0.current,
|
||||
lanes,
|
||||
priority
|
||||
renderPriority
|
||||
);
|
||||
executionContext = prevExecutionContext;
|
||||
flushSyncWorkAcrossRoots_impl(!1);
|
||||
@@ -9895,7 +9891,7 @@ function flushPassiveEffects() {
|
||||
return JSCompiler_inline_result;
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
(ReactCurrentBatchConfig.transition = renderPriority),
|
||||
(ReactCurrentBatchConfig.transition = prevTransition),
|
||||
releaseRootPooledCache(root, remainingLanes);
|
||||
}
|
||||
}
|
||||
@@ -10584,7 +10580,7 @@ var roots = new Map(),
|
||||
devToolsConfig$jscomp$inline_1095 = {
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "19.0.0-canary-01f2d6f5",
|
||||
version: "19.0.0-canary-5faf3031",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForInstance: getInspectorDataForInstance,
|
||||
@@ -10600,7 +10596,7 @@ var roots = new Map(),
|
||||
}.bind(null, findNodeHandle)
|
||||
}
|
||||
};
|
||||
var internals$jscomp$inline_1364 = {
|
||||
var internals$jscomp$inline_1361 = {
|
||||
bundleType: devToolsConfig$jscomp$inline_1095.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1095.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1095.rendererPackageName,
|
||||
@@ -10627,19 +10623,19 @@ var internals$jscomp$inline_1364 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "19.0.0-canary-01f2d6f5"
|
||||
reconcilerVersion: "19.0.0-canary-5faf3031"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1365 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
var hook$jscomp$inline_1362 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (
|
||||
!hook$jscomp$inline_1365.isDisabled &&
|
||||
hook$jscomp$inline_1365.supportsFiber
|
||||
!hook$jscomp$inline_1362.isDisabled &&
|
||||
hook$jscomp$inline_1362.supportsFiber
|
||||
)
|
||||
try {
|
||||
(rendererID = hook$jscomp$inline_1365.inject(
|
||||
internals$jscomp$inline_1364
|
||||
(rendererID = hook$jscomp$inline_1362.inject(
|
||||
internals$jscomp$inline_1361
|
||||
)),
|
||||
(injectedHook = hook$jscomp$inline_1365);
|
||||
(injectedHook = hook$jscomp$inline_1362);
|
||||
} catch (err) {}
|
||||
}
|
||||
exports.createPortal = function (children, containerTag) {
|
||||
|
||||
+38
-42
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<20b7d465c184525ed91fa85c2d27663d>>
|
||||
* @generated SignedSource<<d53dac23fb230a1388c800107c403b25>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -1649,7 +1649,6 @@ function movePendingFibersToMemoized(root, lanes) {
|
||||
lanes &= ~root;
|
||||
}
|
||||
}
|
||||
var currentUpdatePriority = 0;
|
||||
function lanesToEventPriority(lanes) {
|
||||
lanes &= -lanes;
|
||||
return 2 < lanes
|
||||
@@ -1708,6 +1707,19 @@ function getPublicInstance(instance) {
|
||||
? instance
|
||||
: null;
|
||||
}
|
||||
var currentUpdatePriority = 0;
|
||||
function resolveUpdatePriority() {
|
||||
if (0 !== currentUpdatePriority) return currentUpdatePriority;
|
||||
var currentEventPriority = fabricGetCurrentEventPriority
|
||||
? fabricGetCurrentEventPriority()
|
||||
: null;
|
||||
if (null != currentEventPriority)
|
||||
switch (currentEventPriority) {
|
||||
case FabricDiscretePriority:
|
||||
return 2;
|
||||
}
|
||||
return 32;
|
||||
}
|
||||
var scheduleTimeout = setTimeout,
|
||||
cancelTimeout = clearTimeout;
|
||||
function cloneHiddenInstance(instance) {
|
||||
@@ -9496,29 +9508,14 @@ var DefaultCacheDispatcher = {
|
||||
nestedUpdateCount = 0,
|
||||
rootWithNestedUpdates = null;
|
||||
function requestUpdateLane(fiber) {
|
||||
if (0 === (fiber.mode & 1)) return 2;
|
||||
if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)
|
||||
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
|
||||
if (null !== requestCurrentTransition())
|
||||
return (
|
||||
(fiber = currentEntangledLane),
|
||||
0 !== fiber ? fiber : requestTransitionLane()
|
||||
);
|
||||
fiber = currentUpdatePriority;
|
||||
if (0 === fiber)
|
||||
a: {
|
||||
fiber = fabricGetCurrentEventPriority
|
||||
? fabricGetCurrentEventPriority()
|
||||
: null;
|
||||
if (null != fiber)
|
||||
switch (fiber) {
|
||||
case FabricDiscretePriority:
|
||||
fiber = 2;
|
||||
break a;
|
||||
}
|
||||
fiber = 32;
|
||||
}
|
||||
return fiber;
|
||||
return 0 === (fiber.mode & 1)
|
||||
? 2
|
||||
: 0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes
|
||||
? workInProgressRootRenderLanes & -workInProgressRootRenderLanes
|
||||
: null !== requestCurrentTransition()
|
||||
? ((fiber = currentEntangledLane),
|
||||
0 !== fiber ? fiber : requestTransitionLane())
|
||||
: resolveUpdatePriority();
|
||||
}
|
||||
function requestDeferredLane() {
|
||||
0 === workInProgressDeferredLane &&
|
||||
@@ -10340,11 +10337,11 @@ function commitRoot(
|
||||
didIncludeRenderPhaseUpdate,
|
||||
spawnedLane
|
||||
) {
|
||||
var previousUpdateLanePriority = currentUpdatePriority,
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
var prevTransition = ReactCurrentBatchConfig.transition,
|
||||
previousUpdateLanePriority = currentUpdatePriority;
|
||||
try {
|
||||
(ReactCurrentBatchConfig.transition = null),
|
||||
(currentUpdatePriority = 2),
|
||||
(currentUpdatePriority = 2),
|
||||
(ReactCurrentBatchConfig.transition = null),
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -10476,18 +10473,17 @@ function flushPassiveEffects() {
|
||||
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
||||
pendingPassiveEffectsRemainingLanes = 0;
|
||||
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
|
||||
priority = 32 > renderPriority ? 32 : renderPriority;
|
||||
renderPriority = ReactCurrentBatchConfig.transition;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
prevTransition = ReactCurrentBatchConfig.transition,
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
currentUpdatePriority = 32 > renderPriority ? 32 : renderPriority;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
currentUpdatePriority = priority;
|
||||
if (null === rootWithPendingPassiveEffects)
|
||||
var JSCompiler_inline_result = !1;
|
||||
else {
|
||||
var transitions = pendingPassiveTransitions;
|
||||
pendingPassiveTransitions = null;
|
||||
priority = rootWithPendingPassiveEffects;
|
||||
renderPriority = rootWithPendingPassiveEffects;
|
||||
var lanes = pendingPassiveEffectsLanes;
|
||||
rootWithPendingPassiveEffects = null;
|
||||
pendingPassiveEffectsLanes = 0;
|
||||
@@ -10499,10 +10495,10 @@ function flushPassiveEffects() {
|
||||
injectedProfilingHooks.markPassiveEffectsStarted(lanes);
|
||||
var prevExecutionContext = executionContext;
|
||||
executionContext |= 4;
|
||||
commitPassiveUnmountOnFiber(priority.current);
|
||||
commitPassiveUnmountOnFiber(renderPriority.current);
|
||||
commitPassiveMountOnFiber(
|
||||
priority,
|
||||
priority.current,
|
||||
renderPriority,
|
||||
renderPriority.current,
|
||||
lanes,
|
||||
transitions
|
||||
);
|
||||
@@ -10555,9 +10551,9 @@ function flushPassiveEffects() {
|
||||
"function" === typeof injectedHook.onPostCommitFiberRoot
|
||||
)
|
||||
try {
|
||||
injectedHook.onPostCommitFiberRoot(rendererID, priority);
|
||||
injectedHook.onPostCommitFiberRoot(rendererID, renderPriority);
|
||||
} catch (err) {}
|
||||
var stateNode = priority.current.stateNode;
|
||||
var stateNode = renderPriority.current.stateNode;
|
||||
stateNode.effectDuration = 0;
|
||||
stateNode.passiveEffectDuration = 0;
|
||||
JSCompiler_inline_result = !0;
|
||||
@@ -10565,7 +10561,7 @@ function flushPassiveEffects() {
|
||||
return JSCompiler_inline_result;
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
(ReactCurrentBatchConfig.transition = renderPriority),
|
||||
(ReactCurrentBatchConfig.transition = prevTransition),
|
||||
releaseRootPooledCache(root, remainingLanes);
|
||||
}
|
||||
}
|
||||
@@ -11289,7 +11285,7 @@ var roots = new Map(),
|
||||
devToolsConfig$jscomp$inline_1177 = {
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "19.0.0-canary-4fe4467c",
|
||||
version: "19.0.0-canary-c0ae2496",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForInstance: getInspectorDataForInstance,
|
||||
@@ -11345,7 +11341,7 @@ var roots = new Map(),
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "19.0.0-canary-4fe4467c"
|
||||
reconcilerVersion: "19.0.0-canary-c0ae2496"
|
||||
});
|
||||
exports.createPortal = function (children, containerTag) {
|
||||
return createPortal$1(
|
||||
|
||||
+24
-33
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<c73a551f4a3130c37086d7107a16668b>>
|
||||
* @generated SignedSource<<2b9f722cc9a17fc6421814a84806b35d>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -5565,17 +5565,11 @@ to return true:wantsResponderID| |
|
||||
}
|
||||
}
|
||||
|
||||
var NoEventPriority = NoLane;
|
||||
var DiscreteEventPriority = SyncLane;
|
||||
var ContinuousEventPriority = InputContinuousLane;
|
||||
var DefaultEventPriority = DefaultLane;
|
||||
var IdleEventPriority = IdleLane;
|
||||
var currentUpdatePriority = NoLane;
|
||||
function getCurrentUpdatePriority() {
|
||||
return currentUpdatePriority;
|
||||
}
|
||||
function setCurrentUpdatePriority(newPriority) {
|
||||
currentUpdatePriority = newPriority;
|
||||
}
|
||||
function higherEventPriority(a, b) {
|
||||
return a !== 0 && a < b ? a : b;
|
||||
}
|
||||
@@ -5585,6 +5579,9 @@ to return true:wantsResponderID| |
|
||||
function isHigherEventPriority(a, b) {
|
||||
return a !== 0 && a < b;
|
||||
}
|
||||
function eventPriorityToLane(updatePriority) {
|
||||
return updatePriority;
|
||||
}
|
||||
function lanesToEventPriority(lanes) {
|
||||
var lane = getHighestPriorityLane(lanes);
|
||||
|
||||
@@ -5792,7 +5789,18 @@ to return true:wantsResponderID| |
|
||||
// More context @ github.com/facebook/react/pull/8560#discussion_r92111303
|
||||
return false;
|
||||
}
|
||||
function getCurrentEventPriority() {
|
||||
var currentUpdatePriority = NoEventPriority;
|
||||
function setCurrentUpdatePriority(newPriority) {
|
||||
currentUpdatePriority = newPriority;
|
||||
}
|
||||
function getCurrentUpdatePriority() {
|
||||
return currentUpdatePriority;
|
||||
}
|
||||
function resolveUpdatePriority() {
|
||||
if (currentUpdatePriority !== NoEventPriority) {
|
||||
return currentUpdatePriority;
|
||||
}
|
||||
|
||||
return DefaultEventPriority;
|
||||
}
|
||||
function shouldAttemptEagerTransition() {
|
||||
@@ -26469,26 +26477,9 @@ to return true:wantsResponderID| |
|
||||
: // is the first update in that scope. Either way, we need to get a
|
||||
// fresh transition lane.
|
||||
requestTransitionLane();
|
||||
} // Updates originating inside certain React methods, like flushSync, have
|
||||
// their priority set by tracking it with a context variable.
|
||||
//
|
||||
// The opaque type returned by the host config is internally a lane, so we can
|
||||
// use that directly.
|
||||
// TODO: Move this type conversion to the event priority module.
|
||||
}
|
||||
|
||||
var updateLane = getCurrentUpdatePriority();
|
||||
|
||||
if (updateLane !== NoLane) {
|
||||
return updateLane;
|
||||
} // This update originated outside React. Ask the host environment for an
|
||||
// appropriate priority, based on the type of event.
|
||||
//
|
||||
// The opaque type returned by the host config is internally a lane, so we can
|
||||
// use that directly.
|
||||
// TODO: Move this type conversion to the event priority module.
|
||||
|
||||
var eventLane = getCurrentEventPriority();
|
||||
return eventLane;
|
||||
return eventPriorityToLane(resolveUpdatePriority());
|
||||
}
|
||||
|
||||
function requestRetryLane(fiber) {
|
||||
@@ -27231,8 +27222,8 @@ to return true:wantsResponderID| |
|
||||
var previousPriority = getCurrentUpdatePriority();
|
||||
|
||||
try {
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
setCurrentUpdatePriority(DiscreteEventPriority);
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
|
||||
if (fn) {
|
||||
return fn();
|
||||
@@ -28371,12 +28362,12 @@ to return true:wantsResponderID| |
|
||||
) {
|
||||
// TODO: This no longer makes any sense. We already wrap the mutation and
|
||||
// layout phases. Should be able to remove.
|
||||
var previousUpdateLanePriority = getCurrentUpdatePriority();
|
||||
var prevTransition = ReactCurrentBatchConfig.transition;
|
||||
var previousUpdateLanePriority = getCurrentUpdatePriority();
|
||||
|
||||
try {
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
setCurrentUpdatePriority(DiscreteEventPriority);
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -28750,8 +28741,8 @@ to return true:wantsResponderID| |
|
||||
var previousPriority = getCurrentUpdatePriority();
|
||||
|
||||
try {
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
setCurrentUpdatePriority(priority);
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
return flushPassiveEffectsImpl();
|
||||
} finally {
|
||||
setCurrentUpdatePriority(previousPriority);
|
||||
@@ -30758,7 +30749,7 @@ to return true:wantsResponderID| |
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "19.0.0-canary-4c6edcb1";
|
||||
var ReactVersion = "19.0.0-canary-4792ea1b";
|
||||
|
||||
/*
|
||||
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
|
||||
|
||||
+46
-47
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<a975d416ac4c7f46931f4ff8e2183f5c>>
|
||||
* @generated SignedSource<<2084e94cd02df4fa4fa323b7e2cd4561>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -893,7 +893,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
||||
"ReactNativeBridgeEventPlugin"
|
||||
]);
|
||||
recomputePluginOrdering();
|
||||
var injectedNamesToPlugins$jscomp$inline_255 = {
|
||||
var injectedNamesToPlugins$jscomp$inline_256 = {
|
||||
ResponderEventPlugin: ResponderEventPlugin,
|
||||
ReactNativeBridgeEventPlugin: {
|
||||
eventTypes: {},
|
||||
@@ -939,32 +939,32 @@ var injectedNamesToPlugins$jscomp$inline_255 = {
|
||||
}
|
||||
}
|
||||
},
|
||||
isOrderingDirty$jscomp$inline_256 = !1,
|
||||
pluginName$jscomp$inline_257;
|
||||
for (pluginName$jscomp$inline_257 in injectedNamesToPlugins$jscomp$inline_255)
|
||||
isOrderingDirty$jscomp$inline_257 = !1,
|
||||
pluginName$jscomp$inline_258;
|
||||
for (pluginName$jscomp$inline_258 in injectedNamesToPlugins$jscomp$inline_256)
|
||||
if (
|
||||
injectedNamesToPlugins$jscomp$inline_255.hasOwnProperty(
|
||||
pluginName$jscomp$inline_257
|
||||
injectedNamesToPlugins$jscomp$inline_256.hasOwnProperty(
|
||||
pluginName$jscomp$inline_258
|
||||
)
|
||||
) {
|
||||
var pluginModule$jscomp$inline_258 =
|
||||
injectedNamesToPlugins$jscomp$inline_255[pluginName$jscomp$inline_257];
|
||||
var pluginModule$jscomp$inline_259 =
|
||||
injectedNamesToPlugins$jscomp$inline_256[pluginName$jscomp$inline_258];
|
||||
if (
|
||||
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_257) ||
|
||||
namesToPlugins[pluginName$jscomp$inline_257] !==
|
||||
pluginModule$jscomp$inline_258
|
||||
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_258) ||
|
||||
namesToPlugins[pluginName$jscomp$inline_258] !==
|
||||
pluginModule$jscomp$inline_259
|
||||
) {
|
||||
if (namesToPlugins[pluginName$jscomp$inline_257])
|
||||
if (namesToPlugins[pluginName$jscomp$inline_258])
|
||||
throw Error(
|
||||
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
||||
(pluginName$jscomp$inline_257 + "`.")
|
||||
(pluginName$jscomp$inline_258 + "`.")
|
||||
);
|
||||
namesToPlugins[pluginName$jscomp$inline_257] =
|
||||
pluginModule$jscomp$inline_258;
|
||||
isOrderingDirty$jscomp$inline_256 = !0;
|
||||
namesToPlugins[pluginName$jscomp$inline_258] =
|
||||
pluginModule$jscomp$inline_259;
|
||||
isOrderingDirty$jscomp$inline_257 = !0;
|
||||
}
|
||||
}
|
||||
isOrderingDirty$jscomp$inline_256 && recomputePluginOrdering();
|
||||
isOrderingDirty$jscomp$inline_257 && recomputePluginOrdering();
|
||||
var instanceCache = new Map(),
|
||||
instanceProps = new Map();
|
||||
function getInstanceFromTag(tag) {
|
||||
@@ -1914,7 +1914,6 @@ function markRootEntangled(root, entangledLanes) {
|
||||
rootEntangledLanes &= ~lane;
|
||||
}
|
||||
}
|
||||
var currentUpdatePriority = 0;
|
||||
function lanesToEventPriority(lanes) {
|
||||
lanes &= -lanes;
|
||||
return 2 < lanes
|
||||
@@ -1967,6 +1966,7 @@ function getPublicInstance(instance) {
|
||||
}
|
||||
var scheduleTimeout = setTimeout,
|
||||
cancelTimeout = clearTimeout,
|
||||
currentUpdatePriority = 0,
|
||||
valueStack = [],
|
||||
index = -1;
|
||||
function createCursor(defaultValue) {
|
||||
@@ -9198,8 +9198,8 @@ function requestUpdateLane(fiber) {
|
||||
(fiber = currentEntangledLane),
|
||||
0 !== fiber ? fiber : requestTransitionLane()
|
||||
);
|
||||
fiber = currentUpdatePriority;
|
||||
return 0 !== fiber ? fiber : 32;
|
||||
fiber = 0 !== currentUpdatePriority ? currentUpdatePriority : 32;
|
||||
return fiber;
|
||||
}
|
||||
function requestDeferredLane() {
|
||||
0 === workInProgressDeferredLane &&
|
||||
@@ -9941,11 +9941,11 @@ function commitRoot(
|
||||
didIncludeRenderPhaseUpdate,
|
||||
spawnedLane
|
||||
) {
|
||||
var previousUpdateLanePriority = currentUpdatePriority,
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
var prevTransition = ReactCurrentBatchConfig.transition,
|
||||
previousUpdateLanePriority = currentUpdatePriority;
|
||||
try {
|
||||
(ReactCurrentBatchConfig.transition = null),
|
||||
(currentUpdatePriority = 2),
|
||||
(currentUpdatePriority = 2),
|
||||
(ReactCurrentBatchConfig.transition = null),
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -10064,16 +10064,15 @@ function flushPassiveEffects() {
|
||||
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
||||
pendingPassiveEffectsRemainingLanes = 0;
|
||||
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
|
||||
priority = 32 > renderPriority ? 32 : renderPriority;
|
||||
renderPriority = ReactCurrentBatchConfig.transition;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
prevTransition = ReactCurrentBatchConfig.transition,
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
currentUpdatePriority = 32 > renderPriority ? 32 : renderPriority;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
currentUpdatePriority = priority;
|
||||
if (null === rootWithPendingPassiveEffects)
|
||||
var JSCompiler_inline_result = !1;
|
||||
else {
|
||||
priority = pendingPassiveTransitions;
|
||||
renderPriority = pendingPassiveTransitions;
|
||||
pendingPassiveTransitions = null;
|
||||
var root$jscomp$0 = rootWithPendingPassiveEffects,
|
||||
lanes = pendingPassiveEffectsLanes;
|
||||
@@ -10088,7 +10087,7 @@ function flushPassiveEffects() {
|
||||
root$jscomp$0,
|
||||
root$jscomp$0.current,
|
||||
lanes,
|
||||
priority
|
||||
renderPriority
|
||||
);
|
||||
executionContext = prevExecutionContext;
|
||||
flushSyncWorkAcrossRoots_impl(!1);
|
||||
@@ -10104,7 +10103,7 @@ function flushPassiveEffects() {
|
||||
return JSCompiler_inline_result;
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
(ReactCurrentBatchConfig.transition = renderPriority),
|
||||
(ReactCurrentBatchConfig.transition = prevTransition),
|
||||
releaseRootPooledCache(root, remainingLanes);
|
||||
}
|
||||
}
|
||||
@@ -10797,10 +10796,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
}
|
||||
};
|
||||
var roots = new Map(),
|
||||
devToolsConfig$jscomp$inline_1162 = {
|
||||
devToolsConfig$jscomp$inline_1164 = {
|
||||
findFiberByHostInstance: getInstanceFromTag,
|
||||
bundleType: 0,
|
||||
version: "19.0.0-canary-bbe25df7",
|
||||
version: "19.0.0-canary-7e9ae176",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForInstance: getInspectorDataForInstance,
|
||||
@@ -10816,11 +10815,11 @@ var roots = new Map(),
|
||||
}.bind(null, findNodeHandle)
|
||||
}
|
||||
};
|
||||
var internals$jscomp$inline_1445 = {
|
||||
bundleType: devToolsConfig$jscomp$inline_1162.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1162.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1162.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1162.rendererConfig,
|
||||
var internals$jscomp$inline_1447 = {
|
||||
bundleType: devToolsConfig$jscomp$inline_1164.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1164.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1164.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1164.rendererConfig,
|
||||
overrideHookState: null,
|
||||
overrideHookStateDeletePath: null,
|
||||
overrideHookStateRenamePath: null,
|
||||
@@ -10836,26 +10835,26 @@ var internals$jscomp$inline_1445 = {
|
||||
return null === fiber ? null : fiber.stateNode;
|
||||
},
|
||||
findFiberByHostInstance:
|
||||
devToolsConfig$jscomp$inline_1162.findFiberByHostInstance ||
|
||||
devToolsConfig$jscomp$inline_1164.findFiberByHostInstance ||
|
||||
emptyFindFiberByHostInstance,
|
||||
findHostInstancesForRefresh: null,
|
||||
scheduleRefresh: null,
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "19.0.0-canary-bbe25df7"
|
||||
reconcilerVersion: "19.0.0-canary-7e9ae176"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1446 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
var hook$jscomp$inline_1448 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (
|
||||
!hook$jscomp$inline_1446.isDisabled &&
|
||||
hook$jscomp$inline_1446.supportsFiber
|
||||
!hook$jscomp$inline_1448.isDisabled &&
|
||||
hook$jscomp$inline_1448.supportsFiber
|
||||
)
|
||||
try {
|
||||
(rendererID = hook$jscomp$inline_1446.inject(
|
||||
internals$jscomp$inline_1445
|
||||
(rendererID = hook$jscomp$inline_1448.inject(
|
||||
internals$jscomp$inline_1447
|
||||
)),
|
||||
(injectedHook = hook$jscomp$inline_1446);
|
||||
(injectedHook = hook$jscomp$inline_1448);
|
||||
} catch (err) {}
|
||||
}
|
||||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
||||
|
||||
+43
-44
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<4a679b19e322c1ae35a57c741538ab4c>>
|
||||
* @generated SignedSource<<a92d9c4cf840dc79898b348d098d11ad>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -897,7 +897,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
||||
"ReactNativeBridgeEventPlugin"
|
||||
]);
|
||||
recomputePluginOrdering();
|
||||
var injectedNamesToPlugins$jscomp$inline_271 = {
|
||||
var injectedNamesToPlugins$jscomp$inline_272 = {
|
||||
ResponderEventPlugin: ResponderEventPlugin,
|
||||
ReactNativeBridgeEventPlugin: {
|
||||
eventTypes: {},
|
||||
@@ -943,32 +943,32 @@ var injectedNamesToPlugins$jscomp$inline_271 = {
|
||||
}
|
||||
}
|
||||
},
|
||||
isOrderingDirty$jscomp$inline_272 = !1,
|
||||
pluginName$jscomp$inline_273;
|
||||
for (pluginName$jscomp$inline_273 in injectedNamesToPlugins$jscomp$inline_271)
|
||||
isOrderingDirty$jscomp$inline_273 = !1,
|
||||
pluginName$jscomp$inline_274;
|
||||
for (pluginName$jscomp$inline_274 in injectedNamesToPlugins$jscomp$inline_272)
|
||||
if (
|
||||
injectedNamesToPlugins$jscomp$inline_271.hasOwnProperty(
|
||||
pluginName$jscomp$inline_273
|
||||
injectedNamesToPlugins$jscomp$inline_272.hasOwnProperty(
|
||||
pluginName$jscomp$inline_274
|
||||
)
|
||||
) {
|
||||
var pluginModule$jscomp$inline_274 =
|
||||
injectedNamesToPlugins$jscomp$inline_271[pluginName$jscomp$inline_273];
|
||||
var pluginModule$jscomp$inline_275 =
|
||||
injectedNamesToPlugins$jscomp$inline_272[pluginName$jscomp$inline_274];
|
||||
if (
|
||||
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_273) ||
|
||||
namesToPlugins[pluginName$jscomp$inline_273] !==
|
||||
pluginModule$jscomp$inline_274
|
||||
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_274) ||
|
||||
namesToPlugins[pluginName$jscomp$inline_274] !==
|
||||
pluginModule$jscomp$inline_275
|
||||
) {
|
||||
if (namesToPlugins[pluginName$jscomp$inline_273])
|
||||
if (namesToPlugins[pluginName$jscomp$inline_274])
|
||||
throw Error(
|
||||
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
||||
(pluginName$jscomp$inline_273 + "`.")
|
||||
(pluginName$jscomp$inline_274 + "`.")
|
||||
);
|
||||
namesToPlugins[pluginName$jscomp$inline_273] =
|
||||
pluginModule$jscomp$inline_274;
|
||||
isOrderingDirty$jscomp$inline_272 = !0;
|
||||
namesToPlugins[pluginName$jscomp$inline_274] =
|
||||
pluginModule$jscomp$inline_275;
|
||||
isOrderingDirty$jscomp$inline_273 = !0;
|
||||
}
|
||||
}
|
||||
isOrderingDirty$jscomp$inline_272 && recomputePluginOrdering();
|
||||
isOrderingDirty$jscomp$inline_273 && recomputePluginOrdering();
|
||||
var instanceCache = new Map(),
|
||||
instanceProps = new Map();
|
||||
function getInstanceFromTag(tag) {
|
||||
@@ -2036,7 +2036,6 @@ function movePendingFibersToMemoized(root, lanes) {
|
||||
lanes &= ~root;
|
||||
}
|
||||
}
|
||||
var currentUpdatePriority = 0;
|
||||
function lanesToEventPriority(lanes) {
|
||||
lanes &= -lanes;
|
||||
return 2 < lanes
|
||||
@@ -2089,6 +2088,7 @@ function getPublicInstance(instance) {
|
||||
}
|
||||
var scheduleTimeout = setTimeout,
|
||||
cancelTimeout = clearTimeout,
|
||||
currentUpdatePriority = 0,
|
||||
valueStack = [],
|
||||
index = -1;
|
||||
function createCursor(defaultValue) {
|
||||
@@ -9727,8 +9727,8 @@ function requestUpdateLane(fiber) {
|
||||
(fiber = currentEntangledLane),
|
||||
0 !== fiber ? fiber : requestTransitionLane()
|
||||
);
|
||||
fiber = currentUpdatePriority;
|
||||
return 0 !== fiber ? fiber : 32;
|
||||
fiber = 0 !== currentUpdatePriority ? currentUpdatePriority : 32;
|
||||
return fiber;
|
||||
}
|
||||
function requestDeferredLane() {
|
||||
0 === workInProgressDeferredLane &&
|
||||
@@ -10550,11 +10550,11 @@ function commitRoot(
|
||||
didIncludeRenderPhaseUpdate,
|
||||
spawnedLane
|
||||
) {
|
||||
var previousUpdateLanePriority = currentUpdatePriority,
|
||||
prevTransition = ReactCurrentBatchConfig.transition;
|
||||
var prevTransition = ReactCurrentBatchConfig.transition,
|
||||
previousUpdateLanePriority = currentUpdatePriority;
|
||||
try {
|
||||
(ReactCurrentBatchConfig.transition = null),
|
||||
(currentUpdatePriority = 2),
|
||||
(currentUpdatePriority = 2),
|
||||
(ReactCurrentBatchConfig.transition = null),
|
||||
commitRootImpl(
|
||||
root,
|
||||
recoverableErrors,
|
||||
@@ -10686,18 +10686,17 @@ function flushPassiveEffects() {
|
||||
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
||||
pendingPassiveEffectsRemainingLanes = 0;
|
||||
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
|
||||
priority = 32 > renderPriority ? 32 : renderPriority;
|
||||
renderPriority = ReactCurrentBatchConfig.transition;
|
||||
var previousPriority = currentUpdatePriority;
|
||||
prevTransition = ReactCurrentBatchConfig.transition,
|
||||
previousPriority = currentUpdatePriority;
|
||||
try {
|
||||
currentUpdatePriority = 32 > renderPriority ? 32 : renderPriority;
|
||||
ReactCurrentBatchConfig.transition = null;
|
||||
currentUpdatePriority = priority;
|
||||
if (null === rootWithPendingPassiveEffects)
|
||||
var JSCompiler_inline_result = !1;
|
||||
else {
|
||||
var transitions = pendingPassiveTransitions;
|
||||
pendingPassiveTransitions = null;
|
||||
priority = rootWithPendingPassiveEffects;
|
||||
renderPriority = rootWithPendingPassiveEffects;
|
||||
var lanes = pendingPassiveEffectsLanes;
|
||||
rootWithPendingPassiveEffects = null;
|
||||
pendingPassiveEffectsLanes = 0;
|
||||
@@ -10709,10 +10708,10 @@ function flushPassiveEffects() {
|
||||
injectedProfilingHooks.markPassiveEffectsStarted(lanes);
|
||||
var prevExecutionContext = executionContext;
|
||||
executionContext |= 4;
|
||||
commitPassiveUnmountOnFiber(priority.current);
|
||||
commitPassiveUnmountOnFiber(renderPriority.current);
|
||||
commitPassiveMountOnFiber(
|
||||
priority,
|
||||
priority.current,
|
||||
renderPriority,
|
||||
renderPriority.current,
|
||||
lanes,
|
||||
transitions
|
||||
);
|
||||
@@ -10765,9 +10764,9 @@ function flushPassiveEffects() {
|
||||
"function" === typeof injectedHook.onPostCommitFiberRoot
|
||||
)
|
||||
try {
|
||||
injectedHook.onPostCommitFiberRoot(rendererID, priority);
|
||||
injectedHook.onPostCommitFiberRoot(rendererID, renderPriority);
|
||||
} catch (err) {}
|
||||
var stateNode = priority.current.stateNode;
|
||||
var stateNode = renderPriority.current.stateNode;
|
||||
stateNode.effectDuration = 0;
|
||||
stateNode.passiveEffectDuration = 0;
|
||||
JSCompiler_inline_result = !0;
|
||||
@@ -10775,7 +10774,7 @@ function flushPassiveEffects() {
|
||||
return JSCompiler_inline_result;
|
||||
} finally {
|
||||
(currentUpdatePriority = previousPriority),
|
||||
(ReactCurrentBatchConfig.transition = renderPriority),
|
||||
(ReactCurrentBatchConfig.transition = prevTransition),
|
||||
releaseRootPooledCache(root, remainingLanes);
|
||||
}
|
||||
}
|
||||
@@ -11503,10 +11502,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
}
|
||||
};
|
||||
var roots = new Map(),
|
||||
devToolsConfig$jscomp$inline_1244 = {
|
||||
devToolsConfig$jscomp$inline_1246 = {
|
||||
findFiberByHostInstance: getInstanceFromTag,
|
||||
bundleType: 0,
|
||||
version: "19.0.0-canary-d2e200b3",
|
||||
version: "19.0.0-canary-b2febde1",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
rendererConfig: {
|
||||
getInspectorDataForInstance: getInspectorDataForInstance,
|
||||
@@ -11536,10 +11535,10 @@ var roots = new Map(),
|
||||
} catch (err) {}
|
||||
return hook.checkDCE ? !0 : !1;
|
||||
})({
|
||||
bundleType: devToolsConfig$jscomp$inline_1244.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1244.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1244.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1244.rendererConfig,
|
||||
bundleType: devToolsConfig$jscomp$inline_1246.bundleType,
|
||||
version: devToolsConfig$jscomp$inline_1246.version,
|
||||
rendererPackageName: devToolsConfig$jscomp$inline_1246.rendererPackageName,
|
||||
rendererConfig: devToolsConfig$jscomp$inline_1246.rendererConfig,
|
||||
overrideHookState: null,
|
||||
overrideHookStateDeletePath: null,
|
||||
overrideHookStateRenamePath: null,
|
||||
@@ -11555,14 +11554,14 @@ var roots = new Map(),
|
||||
return null === fiber ? null : fiber.stateNode;
|
||||
},
|
||||
findFiberByHostInstance:
|
||||
devToolsConfig$jscomp$inline_1244.findFiberByHostInstance ||
|
||||
devToolsConfig$jscomp$inline_1246.findFiberByHostInstance ||
|
||||
emptyFindFiberByHostInstance,
|
||||
findHostInstancesForRefresh: null,
|
||||
scheduleRefresh: null,
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "19.0.0-canary-d2e200b3"
|
||||
reconcilerVersion: "19.0.0-canary-b2febde1"
|
||||
});
|
||||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
||||
computeComponentStackForErrorReporting: function (reactTag) {
|
||||
|
||||
Reference in New Issue
Block a user