Ship diffInCommitPhase (#27409)

Performance tests at Meta showed neutral results.

DiffTrain build for commit https://github.com/facebook/react/commit/7f6201889e8e628eeb53e05d8850ddffa3c2e74a.
This commit is contained in:
sophiebits
2023-09-23 03:29:23 +00:00
parent 59e0111f28
commit d2cd2f25ef
13 changed files with 206 additions and 245 deletions
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<90d4b49133c0f3de327f45d0812fd8e9>>
* @generated SignedSource<<0e3d907c9303927e282697c3cd932853>>
*/
'use strict';
@@ -144,7 +144,6 @@ var enableProfilerNestedUpdatePhase = true;
var createRootStrictEffectsByDefault = false;
var enableLazyContextPropagation = false;
var enableLegacyHidden = false;
var diffInCommitPhase = true;
var enableAsyncActions = false;
var alwaysThrottleRetries = true; // Flow magic to verify the exports of this file match the original version.
@@ -15089,9 +15088,7 @@ function updateHostComponent(
return;
}
{
markUpdate(workInProgress);
}
markUpdate(workInProgress);
}
} // This function must be called at the very end of the complete phase, because
// it might throw to suspend, and if the resource immediately loads, the work
@@ -15541,7 +15538,7 @@ function completeWork(current, workInProgress, renderLanes) {
return null;
}
var _currentHostContext2 = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context
var _currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context
// "stack" as the parent. Then append children as we go in beginWork
// or completeWork depending on whether we want to add them top->down or
// bottom->up. Top->down is faster in IE11.
@@ -15551,11 +15548,7 @@ function completeWork(current, workInProgress, renderLanes) {
if (_wasHydrated2) {
// TODO: Move this and createInstance step into the beginPhase
// to consolidate.
if (prepareToHydrateHostInstance()) {
// If changes to the hydrated node need to be applied at the
// commit-phase we mark this as such.
markUpdate(workInProgress);
}
prepareToHydrateHostInstance();
} else {
var _rootContainerInstance = getRootHostContainer();
@@ -15563,7 +15556,7 @@ function completeWork(current, workInProgress, renderLanes) {
_type2,
newProps,
_rootContainerInstance,
_currentHostContext2,
_currentHostContext,
workInProgress
);
@@ -18358,23 +18351,17 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) {
var _updatePayload = finishedWork.updateQueue;
finishedWork.updateQueue = null;
if (_updatePayload !== null || diffInCommitPhase) {
try {
commitUpdate(
_instance2,
_updatePayload,
type,
oldProps,
newProps,
finishedWork
);
} catch (error) {
captureCommitPhaseError(
finishedWork,
finishedWork.return,
error
);
}
try {
commitUpdate(
_instance2,
_updatePayload,
type,
oldProps,
newProps,
finishedWork
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
}
@@ -23998,7 +23985,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-canary-d9e00f795-20230922";
var ReactVersion = "18.3.0-canary-7f6201889-20230922";
// Might add PROFILE later.
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<5361a5f040398d7d166b0f13b30a010c>>
* @generated SignedSource<<b1b02ea2864306d9401fff67f78939a8>>
*/
"use strict";
@@ -8615,19 +8615,19 @@ function wrapFiber(fiber) {
fiberToWrapper.set(fiber, wrapper));
return wrapper;
}
var devToolsConfig$jscomp$inline_1028 = {
var devToolsConfig$jscomp$inline_1027 = {
findFiberByHostInstance: function () {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-d9e00f795-20230922",
version: "18.3.0-canary-7f6201889-20230922",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1227 = {
bundleType: devToolsConfig$jscomp$inline_1028.bundleType,
version: devToolsConfig$jscomp$inline_1028.version,
rendererPackageName: devToolsConfig$jscomp$inline_1028.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1028.rendererConfig,
var internals$jscomp$inline_1226 = {
bundleType: devToolsConfig$jscomp$inline_1027.bundleType,
version: devToolsConfig$jscomp$inline_1027.version,
rendererPackageName: devToolsConfig$jscomp$inline_1027.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1027.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@@ -8644,26 +8644,26 @@ var internals$jscomp$inline_1227 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1028.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1027.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-d9e00f795-20230922"
reconcilerVersion: "18.3.0-canary-7f6201889-20230922"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1228 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1227 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1228.isDisabled &&
hook$jscomp$inline_1228.supportsFiber
!hook$jscomp$inline_1227.isDisabled &&
hook$jscomp$inline_1227.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1228.inject(
internals$jscomp$inline_1227
(rendererID = hook$jscomp$inline_1227.inject(
internals$jscomp$inline_1226
)),
(injectedHook = hook$jscomp$inline_1228);
(injectedHook = hook$jscomp$inline_1227);
} catch (err) {}
}
exports._Scheduler = Scheduler;
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<486546c05387fd5f0f9d0c9c12aa9b75>>
* @generated SignedSource<<d7da817483638eb94b412ab9cb540ebb>>
*/
"use strict";
@@ -9041,19 +9041,19 @@ function wrapFiber(fiber) {
fiberToWrapper.set(fiber, wrapper));
return wrapper;
}
var devToolsConfig$jscomp$inline_1070 = {
var devToolsConfig$jscomp$inline_1069 = {
findFiberByHostInstance: function () {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-d9e00f795-20230922",
version: "18.3.0-canary-7f6201889-20230922",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1268 = {
bundleType: devToolsConfig$jscomp$inline_1070.bundleType,
version: devToolsConfig$jscomp$inline_1070.version,
rendererPackageName: devToolsConfig$jscomp$inline_1070.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1070.rendererConfig,
var internals$jscomp$inline_1267 = {
bundleType: devToolsConfig$jscomp$inline_1069.bundleType,
version: devToolsConfig$jscomp$inline_1069.version,
rendererPackageName: devToolsConfig$jscomp$inline_1069.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1069.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@@ -9070,26 +9070,26 @@ var internals$jscomp$inline_1268 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1070.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1069.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-d9e00f795-20230922"
reconcilerVersion: "18.3.0-canary-7f6201889-20230922"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1269 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1268 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1269.isDisabled &&
hook$jscomp$inline_1269.supportsFiber
!hook$jscomp$inline_1268.isDisabled &&
hook$jscomp$inline_1268.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1269.inject(
internals$jscomp$inline_1268
(rendererID = hook$jscomp$inline_1268.inject(
internals$jscomp$inline_1267
)),
(injectedHook = hook$jscomp$inline_1269);
(injectedHook = hook$jscomp$inline_1268);
} catch (err) {}
}
exports._Scheduler = Scheduler;
@@ -27,7 +27,7 @@ if (
}
"use strict";
var ReactVersion = "18.3.0-canary-d9e00f795-20230922";
var ReactVersion = "18.3.0-canary-7f6201889-20230922";
// ATTENTION
// When adding new symbols to this file,
@@ -616,4 +616,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-d9e00f795-20230922";
exports.version = "18.3.0-canary-7f6201889-20230922";
@@ -619,7 +619,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-d9e00f795-20230922";
exports.version = "18.3.0-canary-7f6201889-20230922";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -1 +1 @@
d9e00f795b77676fb14f2a3c6f421f48f73bec2a
7f6201889e8e628eeb53e05d8850ddffa3c2e74a
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<01008a8950368c139ee32158a8728c5d>>
* @generated SignedSource<<bfbfdcdd5acb2e3049107f9e3d279ba1>>
*/
'use strict';
@@ -4997,7 +4997,6 @@ var cancelTimeout = clearTimeout;
var noTimeout = -1; // -------------------
function cloneInstance(
instance,
updatePayload,
type,
oldProps,
newProps,
@@ -5005,15 +5004,12 @@ function cloneInstance(
keepChildren,
recyclableInstance
) {
{
var viewConfig = instance.canonical.viewConfig;
updatePayload = diff(oldProps, newProps, viewConfig.validAttributes); // TODO: If the event handlers have changed, we need to update the current props
// in the commit phase but there is no host config hook to do it yet.
// So instead we hack it by updating it in the render phase.
instance.canonical.currentProps = newProps;
}
var viewConfig = instance.canonical.viewConfig;
var updatePayload = diff(oldProps, newProps, viewConfig.validAttributes); // TODO: If the event handlers have changed, we need to update the current props
// in the commit phase but there is no host config hook to do it yet.
// So instead we hack it by updating it in the render phase.
instance.canonical.currentProps = newProps;
var node = instance.node;
var clone;
@@ -5021,10 +5017,8 @@ function cloneInstance(
if (updatePayload !== null) {
clone = cloneNodeWithNewProps(node, updatePayload);
} else {
{
// No changes
return instance;
}
// No changes
return instance;
}
} else {
if (updatePayload !== null) {
@@ -18880,14 +18874,9 @@ function updateHostComponent(
workInProgress.stateNode = currentInstance;
return;
}
getHostContext();
var _updatePayload = null;
var newInstance = cloneInstance(
currentInstance,
_updatePayload,
type,
_oldProps,
newProps,
@@ -19359,7 +19348,7 @@ function completeWork(current, workInProgress, renderLanes) {
return null;
}
var _currentHostContext2 = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context
var _currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context
// "stack" as the parent. Then append children as we go in beginWork
// or completeWork depending on whether we want to add them top->down or
// bottom->up. Top->down is faster in IE11.
@@ -19369,11 +19358,7 @@ function completeWork(current, workInProgress, renderLanes) {
if (_wasHydrated2) {
// TODO: Move this and createInstance step into the beginPhase
// to consolidate.
if (prepareToHydrateHostInstance()) {
// If changes to the hydrated node need to be applied at the
// commit-phase we mark this as such.
markUpdate(workInProgress);
}
prepareToHydrateHostInstance();
} else {
var _rootContainerInstance = getRootHostContainer();
@@ -19381,7 +19366,7 @@ function completeWork(current, workInProgress, renderLanes) {
_type2,
newProps,
_rootContainerInstance,
_currentHostContext2,
_currentHostContext,
workInProgress
);
@@ -19424,7 +19409,7 @@ function completeWork(current, workInProgress, renderLanes) {
var _rootContainerInstance2 = getRootHostContainer();
var _currentHostContext3 = getHostContext();
var _currentHostContext2 = getHostContext();
var _wasHydrated3 = popHydrationState();
@@ -19436,7 +19421,7 @@ function completeWork(current, workInProgress, renderLanes) {
workInProgress.stateNode = createTextInstance(
newText,
_rootContainerInstance2,
_currentHostContext3,
_currentHostContext2,
workInProgress
);
}
@@ -27037,7 +27022,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-canary-f73f8a34";
var ReactVersion = "18.3.0-canary-b65b3ea2";
function createPortal$1(
children,
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f4377d8ff1f66b2a641cbdfb6498eb2c>>
* @generated SignedSource<<04ae3f849bac2edae707d11362d5d19e>>
*/
"use strict";
@@ -940,7 +940,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_234 = {
var injectedNamesToPlugins$jscomp$inline_233 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@@ -986,32 +986,32 @@ var injectedNamesToPlugins$jscomp$inline_234 = {
}
}
},
isOrderingDirty$jscomp$inline_235 = !1,
pluginName$jscomp$inline_236;
for (pluginName$jscomp$inline_236 in injectedNamesToPlugins$jscomp$inline_234)
isOrderingDirty$jscomp$inline_234 = !1,
pluginName$jscomp$inline_235;
for (pluginName$jscomp$inline_235 in injectedNamesToPlugins$jscomp$inline_233)
if (
injectedNamesToPlugins$jscomp$inline_234.hasOwnProperty(
pluginName$jscomp$inline_236
injectedNamesToPlugins$jscomp$inline_233.hasOwnProperty(
pluginName$jscomp$inline_235
)
) {
var pluginModule$jscomp$inline_237 =
injectedNamesToPlugins$jscomp$inline_234[pluginName$jscomp$inline_236];
var pluginModule$jscomp$inline_236 =
injectedNamesToPlugins$jscomp$inline_233[pluginName$jscomp$inline_235];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_236) ||
namesToPlugins[pluginName$jscomp$inline_236] !==
pluginModule$jscomp$inline_237
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_235) ||
namesToPlugins[pluginName$jscomp$inline_235] !==
pluginModule$jscomp$inline_236
) {
if (namesToPlugins[pluginName$jscomp$inline_236])
if (namesToPlugins[pluginName$jscomp$inline_235])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
(pluginName$jscomp$inline_236 + "`.")
(pluginName$jscomp$inline_235 + "`.")
);
namesToPlugins[pluginName$jscomp$inline_236] =
pluginModule$jscomp$inline_237;
isOrderingDirty$jscomp$inline_235 = !0;
namesToPlugins[pluginName$jscomp$inline_235] =
pluginModule$jscomp$inline_236;
isOrderingDirty$jscomp$inline_234 = !0;
}
}
isOrderingDirty$jscomp$inline_235 && recomputePluginOrdering();
isOrderingDirty$jscomp$inline_234 && recomputePluginOrdering();
var emptyObject$1 = {},
removedKeys = null,
removedKeyCount = 0,
@@ -9422,10 +9422,10 @@ batchedUpdatesImpl = function (fn, a) {
}
};
var roots = new Map(),
devToolsConfig$jscomp$inline_1038 = {
devToolsConfig$jscomp$inline_1036 = {
findFiberByHostInstance: getInstanceFromNode,
bundleType: 0,
version: "18.3.0-canary-af8a5ec1",
version: "18.3.0-canary-b022a1e4",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -9441,11 +9441,11 @@ var roots = new Map(),
}.bind(null, findNodeHandle)
}
};
var internals$jscomp$inline_1280 = {
bundleType: devToolsConfig$jscomp$inline_1038.bundleType,
version: devToolsConfig$jscomp$inline_1038.version,
rendererPackageName: devToolsConfig$jscomp$inline_1038.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1038.rendererConfig,
var internals$jscomp$inline_1278 = {
bundleType: devToolsConfig$jscomp$inline_1036.bundleType,
version: devToolsConfig$jscomp$inline_1036.version,
rendererPackageName: devToolsConfig$jscomp$inline_1036.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1036.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@@ -9461,26 +9461,26 @@ var internals$jscomp$inline_1280 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1038.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1036.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-af8a5ec1"
reconcilerVersion: "18.3.0-canary-b022a1e4"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1281 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1279 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1281.isDisabled &&
hook$jscomp$inline_1281.supportsFiber
!hook$jscomp$inline_1279.isDisabled &&
hook$jscomp$inline_1279.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1281.inject(
internals$jscomp$inline_1280
(rendererID = hook$jscomp$inline_1279.inject(
internals$jscomp$inline_1278
)),
(injectedHook = hook$jscomp$inline_1281);
(injectedHook = hook$jscomp$inline_1279);
} catch (err) {}
}
exports.createPortal = function (children, containerTag) {
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6b16278436dd259e22a3d49533f17505>>
* @generated SignedSource<<9f4142ee8a890d433886d66ac26070c0>>
*/
@@ -951,7 +951,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_250 = {
var injectedNamesToPlugins$jscomp$inline_249 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@@ -997,32 +997,32 @@ var injectedNamesToPlugins$jscomp$inline_250 = {
}
}
},
isOrderingDirty$jscomp$inline_251 = !1,
pluginName$jscomp$inline_252;
for (pluginName$jscomp$inline_252 in injectedNamesToPlugins$jscomp$inline_250)
isOrderingDirty$jscomp$inline_250 = !1,
pluginName$jscomp$inline_251;
for (pluginName$jscomp$inline_251 in injectedNamesToPlugins$jscomp$inline_249)
if (
injectedNamesToPlugins$jscomp$inline_250.hasOwnProperty(
pluginName$jscomp$inline_252
injectedNamesToPlugins$jscomp$inline_249.hasOwnProperty(
pluginName$jscomp$inline_251
)
) {
var pluginModule$jscomp$inline_253 =
injectedNamesToPlugins$jscomp$inline_250[pluginName$jscomp$inline_252];
var pluginModule$jscomp$inline_252 =
injectedNamesToPlugins$jscomp$inline_249[pluginName$jscomp$inline_251];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_252) ||
namesToPlugins[pluginName$jscomp$inline_252] !==
pluginModule$jscomp$inline_253
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_251) ||
namesToPlugins[pluginName$jscomp$inline_251] !==
pluginModule$jscomp$inline_252
) {
if (namesToPlugins[pluginName$jscomp$inline_252])
if (namesToPlugins[pluginName$jscomp$inline_251])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
(pluginName$jscomp$inline_252 + "`.")
(pluginName$jscomp$inline_251 + "`.")
);
namesToPlugins[pluginName$jscomp$inline_252] =
pluginModule$jscomp$inline_253;
isOrderingDirty$jscomp$inline_251 = !0;
namesToPlugins[pluginName$jscomp$inline_251] =
pluginModule$jscomp$inline_252;
isOrderingDirty$jscomp$inline_250 = !0;
}
}
isOrderingDirty$jscomp$inline_251 && recomputePluginOrdering();
isOrderingDirty$jscomp$inline_250 && recomputePluginOrdering();
var emptyObject$1 = {},
removedKeys = null,
removedKeyCount = 0,
@@ -10130,10 +10130,10 @@ batchedUpdatesImpl = function (fn, a) {
}
};
var roots = new Map(),
devToolsConfig$jscomp$inline_1116 = {
devToolsConfig$jscomp$inline_1114 = {
findFiberByHostInstance: getInstanceFromNode,
bundleType: 0,
version: "18.3.0-canary-db5e081b",
version: "18.3.0-canary-dd4845b0",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -10163,10 +10163,10 @@ var roots = new Map(),
} catch (err) {}
return hook.checkDCE ? !0 : !1;
})({
bundleType: devToolsConfig$jscomp$inline_1116.bundleType,
version: devToolsConfig$jscomp$inline_1116.version,
rendererPackageName: devToolsConfig$jscomp$inline_1116.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1116.rendererConfig,
bundleType: devToolsConfig$jscomp$inline_1114.bundleType,
version: devToolsConfig$jscomp$inline_1114.version,
rendererPackageName: devToolsConfig$jscomp$inline_1114.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1114.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@@ -10182,14 +10182,14 @@ var roots = new Map(),
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1116.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1114.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-db5e081b"
reconcilerVersion: "18.3.0-canary-dd4845b0"
});
exports.createPortal = function (children, containerTag) {
return createPortal$1(
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f2e65ef4c8c0960e3b3015a92bd257ca>>
* @generated SignedSource<<7dc852806831b7111cfc72d0b9e0e745>>
*/
'use strict';
@@ -2904,7 +2904,6 @@ var enableProfilerCommitHooks = true;
var enableProfilerNestedUpdatePhase = true;
var createRootStrictEffectsByDefault = false;
var enableLazyContextPropagation = false;
var diffInCommitPhase = true;
var enableAsyncActions = false; // Flow magic to verify the exports of this file match the original version.
// ATTENTION
@@ -5652,6 +5651,8 @@ var suspendResource = shim;
var getViewConfigForType =
ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get; // Unused
// Unused
// Counter for uniquely identifying views.
// % 10 === 1 means it is a rootTag.
// % 2 === 0 means it is a Fabric tag.
@@ -19043,9 +19044,7 @@ function updateHostComponent(
return;
}
{
markUpdate(workInProgress);
}
markUpdate(workInProgress);
}
} // This function must be called at the very end of the complete phase, because
// it might throw to suspend, and if the resource immediately loads, the work
@@ -19478,7 +19477,7 @@ function completeWork(current, workInProgress, renderLanes) {
return null;
}
var _currentHostContext2 = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context
var _currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context
// "stack" as the parent. Then append children as we go in beginWork
// or completeWork depending on whether we want to add them top->down or
// bottom->up. Top->down is faster in IE11.
@@ -19488,11 +19487,7 @@ function completeWork(current, workInProgress, renderLanes) {
if (_wasHydrated2) {
// TODO: Move this and createInstance step into the beginPhase
// to consolidate.
if (prepareToHydrateHostInstance()) {
// If changes to the hydrated node need to be applied at the
// commit-phase we mark this as such.
markUpdate(workInProgress);
}
prepareToHydrateHostInstance();
} else {
var _rootContainerInstance = getRootHostContainer();
@@ -19500,7 +19495,7 @@ function completeWork(current, workInProgress, renderLanes) {
_type2,
newProps,
_rootContainerInstance,
_currentHostContext2,
_currentHostContext,
workInProgress
);
@@ -19549,7 +19544,7 @@ function completeWork(current, workInProgress, renderLanes) {
var _rootContainerInstance2 = getRootHostContainer();
var _currentHostContext3 = getHostContext();
var _currentHostContext2 = getHostContext();
var _wasHydrated3 = popHydrationState();
@@ -19561,7 +19556,7 @@ function completeWork(current, workInProgress, renderLanes) {
workInProgress.stateNode = createTextInstance(
newText,
_rootContainerInstance2,
_currentHostContext3,
_currentHostContext2,
workInProgress
);
}
@@ -22042,23 +22037,17 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) {
var _updatePayload = finishedWork.updateQueue;
finishedWork.updateQueue = null;
if (_updatePayload !== null || diffInCommitPhase) {
try {
commitUpdate(
_instance2,
_updatePayload,
type,
oldProps,
newProps,
finishedWork
);
} catch (error) {
captureCommitPhaseError(
finishedWork,
finishedWork.return,
error
);
}
try {
commitUpdate(
_instance2,
_updatePayload,
type,
oldProps,
newProps,
finishedWork
);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
}
@@ -27551,7 +27540,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-canary-28a7f6a0";
var ReactVersion = "18.3.0-canary-03678cdf";
function createPortal$1(
children,
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<a21e07daf684cb26b4ce1acb9efc32aa>>
* @generated SignedSource<<aaec1af03e9ca86cf4ab10789db4a910>>
*/
"use strict";
@@ -940,7 +940,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_240 = {
var injectedNamesToPlugins$jscomp$inline_239 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@@ -986,32 +986,32 @@ var injectedNamesToPlugins$jscomp$inline_240 = {
}
}
},
isOrderingDirty$jscomp$inline_241 = !1,
pluginName$jscomp$inline_242;
for (pluginName$jscomp$inline_242 in injectedNamesToPlugins$jscomp$inline_240)
isOrderingDirty$jscomp$inline_240 = !1,
pluginName$jscomp$inline_241;
for (pluginName$jscomp$inline_241 in injectedNamesToPlugins$jscomp$inline_239)
if (
injectedNamesToPlugins$jscomp$inline_240.hasOwnProperty(
pluginName$jscomp$inline_242
injectedNamesToPlugins$jscomp$inline_239.hasOwnProperty(
pluginName$jscomp$inline_241
)
) {
var pluginModule$jscomp$inline_243 =
injectedNamesToPlugins$jscomp$inline_240[pluginName$jscomp$inline_242];
var pluginModule$jscomp$inline_242 =
injectedNamesToPlugins$jscomp$inline_239[pluginName$jscomp$inline_241];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_242) ||
namesToPlugins[pluginName$jscomp$inline_242] !==
pluginModule$jscomp$inline_243
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_241) ||
namesToPlugins[pluginName$jscomp$inline_241] !==
pluginModule$jscomp$inline_242
) {
if (namesToPlugins[pluginName$jscomp$inline_242])
if (namesToPlugins[pluginName$jscomp$inline_241])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
(pluginName$jscomp$inline_242 + "`.")
(pluginName$jscomp$inline_241 + "`.")
);
namesToPlugins[pluginName$jscomp$inline_242] =
pluginModule$jscomp$inline_243;
isOrderingDirty$jscomp$inline_241 = !0;
namesToPlugins[pluginName$jscomp$inline_241] =
pluginModule$jscomp$inline_242;
isOrderingDirty$jscomp$inline_240 = !0;
}
}
isOrderingDirty$jscomp$inline_241 && recomputePluginOrdering();
isOrderingDirty$jscomp$inline_240 && recomputePluginOrdering();
var instanceCache = new Map(),
instanceProps = new Map();
function getInstanceFromTag(tag) {
@@ -9678,10 +9678,10 @@ batchedUpdatesImpl = function (fn, a) {
}
};
var roots = new Map(),
devToolsConfig$jscomp$inline_1093 = {
devToolsConfig$jscomp$inline_1092 = {
findFiberByHostInstance: getInstanceFromTag,
bundleType: 0,
version: "18.3.0-canary-38805935",
version: "18.3.0-canary-903ae3ec",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -9697,11 +9697,11 @@ var roots = new Map(),
}.bind(null, findNodeHandle)
}
};
var internals$jscomp$inline_1349 = {
bundleType: devToolsConfig$jscomp$inline_1093.bundleType,
version: devToolsConfig$jscomp$inline_1093.version,
rendererPackageName: devToolsConfig$jscomp$inline_1093.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1093.rendererConfig,
var internals$jscomp$inline_1348 = {
bundleType: devToolsConfig$jscomp$inline_1092.bundleType,
version: devToolsConfig$jscomp$inline_1092.version,
rendererPackageName: devToolsConfig$jscomp$inline_1092.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1092.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@@ -9717,26 +9717,26 @@ var internals$jscomp$inline_1349 = {
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1093.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1092.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-38805935"
reconcilerVersion: "18.3.0-canary-903ae3ec"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1350 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1349 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1350.isDisabled &&
hook$jscomp$inline_1350.supportsFiber
!hook$jscomp$inline_1349.isDisabled &&
hook$jscomp$inline_1349.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1350.inject(
internals$jscomp$inline_1349
(rendererID = hook$jscomp$inline_1349.inject(
internals$jscomp$inline_1348
)),
(injectedHook = hook$jscomp$inline_1350);
(injectedHook = hook$jscomp$inline_1349);
} catch (err) {}
}
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<7d829b6bea14b03ca3f0800f7f1380e0>>
* @generated SignedSource<<beabdb80fb8624e28af70feeacf9182a>>
*/
@@ -951,7 +951,7 @@ eventPluginOrder = Array.prototype.slice.call([
"ReactNativeBridgeEventPlugin"
]);
recomputePluginOrdering();
var injectedNamesToPlugins$jscomp$inline_256 = {
var injectedNamesToPlugins$jscomp$inline_255 = {
ResponderEventPlugin: ResponderEventPlugin,
ReactNativeBridgeEventPlugin: {
eventTypes: {},
@@ -997,32 +997,32 @@ var injectedNamesToPlugins$jscomp$inline_256 = {
}
}
},
isOrderingDirty$jscomp$inline_257 = !1,
pluginName$jscomp$inline_258;
for (pluginName$jscomp$inline_258 in injectedNamesToPlugins$jscomp$inline_256)
isOrderingDirty$jscomp$inline_256 = !1,
pluginName$jscomp$inline_257;
for (pluginName$jscomp$inline_257 in injectedNamesToPlugins$jscomp$inline_255)
if (
injectedNamesToPlugins$jscomp$inline_256.hasOwnProperty(
pluginName$jscomp$inline_258
injectedNamesToPlugins$jscomp$inline_255.hasOwnProperty(
pluginName$jscomp$inline_257
)
) {
var pluginModule$jscomp$inline_259 =
injectedNamesToPlugins$jscomp$inline_256[pluginName$jscomp$inline_258];
var pluginModule$jscomp$inline_258 =
injectedNamesToPlugins$jscomp$inline_255[pluginName$jscomp$inline_257];
if (
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_258) ||
namesToPlugins[pluginName$jscomp$inline_258] !==
pluginModule$jscomp$inline_259
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_257) ||
namesToPlugins[pluginName$jscomp$inline_257] !==
pluginModule$jscomp$inline_258
) {
if (namesToPlugins[pluginName$jscomp$inline_258])
if (namesToPlugins[pluginName$jscomp$inline_257])
throw Error(
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
(pluginName$jscomp$inline_258 + "`.")
(pluginName$jscomp$inline_257 + "`.")
);
namesToPlugins[pluginName$jscomp$inline_258] =
pluginModule$jscomp$inline_259;
isOrderingDirty$jscomp$inline_257 = !0;
namesToPlugins[pluginName$jscomp$inline_257] =
pluginModule$jscomp$inline_258;
isOrderingDirty$jscomp$inline_256 = !0;
}
}
isOrderingDirty$jscomp$inline_257 && recomputePluginOrdering();
isOrderingDirty$jscomp$inline_256 && recomputePluginOrdering();
var instanceCache = new Map(),
instanceProps = new Map();
function getInstanceFromTag(tag) {
@@ -10386,10 +10386,10 @@ batchedUpdatesImpl = function (fn, a) {
}
};
var roots = new Map(),
devToolsConfig$jscomp$inline_1171 = {
devToolsConfig$jscomp$inline_1170 = {
findFiberByHostInstance: getInstanceFromTag,
bundleType: 0,
version: "18.3.0-canary-8bb18aca",
version: "18.3.0-canary-e47c466d",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -10419,10 +10419,10 @@ var roots = new Map(),
} catch (err) {}
return hook.checkDCE ? !0 : !1;
})({
bundleType: devToolsConfig$jscomp$inline_1171.bundleType,
version: devToolsConfig$jscomp$inline_1171.version,
rendererPackageName: devToolsConfig$jscomp$inline_1171.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1171.rendererConfig,
bundleType: devToolsConfig$jscomp$inline_1170.bundleType,
version: devToolsConfig$jscomp$inline_1170.version,
rendererPackageName: devToolsConfig$jscomp$inline_1170.rendererPackageName,
rendererConfig: devToolsConfig$jscomp$inline_1170.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
@@ -10438,14 +10438,14 @@ var roots = new Map(),
return null === fiber ? null : fiber.stateNode;
},
findFiberByHostInstance:
devToolsConfig$jscomp$inline_1171.findFiberByHostInstance ||
devToolsConfig$jscomp$inline_1170.findFiberByHostInstance ||
emptyFindFiberByHostInstance,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-8bb18aca"
reconcilerVersion: "18.3.0-canary-e47c466d"
});
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
computeComponentStackForErrorReporting: function (reactTag) {