From ae98316be4690397d8fa8f6b47176ee43e59c047 Mon Sep 17 00:00:00 2001 From: kassens Date: Mon, 27 Mar 2023 11:48:51 +0000 Subject: [PATCH] [flow] make Flow suppressions explicit on the error (#26487) Added an explicit type to all $FlowFixMe suppressions to reduce over-suppressions of new errors that might be caused on the same lines. Also removes suppressions that aren't used (e.g. in a `@noflow` file as they're purely misleading) Test Plan: yarn flow-ci DiffTrain build for commit https://github.com/facebook/react/commit/afea1d0c536e0336735b0ea5c74f635527b65785. --- .../cjs/ReactTestRenderer-dev.js | 44 ++++++------- .../cjs/ReactTestRenderer-prod.js | 4 +- .../cjs/ReactTestRenderer-profiling.js | 4 +- .../vendor/react/cjs/JSXDEVRuntime-dev.js | 8 +-- .../vendor/react/cjs/JSXRuntime-dev.js | 8 +-- .../RKJSModules/vendor/react/cjs/React-dev.js | 30 ++++----- .../vendor/react/cjs/React-prod.js | 2 +- .../vendor/react/cjs/React-profiling.js | 2 +- .../Libraries/Renderer/REVISION | 2 +- .../implementations/ReactFabric-dev.fb.js | 64 +++++++++--------- .../implementations/ReactFabric-prod.fb.js | 4 +- .../ReactFabric-profiling.fb.js | 4 +- .../ReactNativeRenderer-dev.fb.js | 66 +++++++++---------- .../ReactNativeRenderer-prod.fb.js | 4 +- .../ReactNativeRenderer-profiling.fb.js | 4 +- 15 files changed, 125 insertions(+), 125 deletions(-) diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js index 2e85f649c6200..6df370d0483f6 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js @@ -2177,7 +2177,7 @@ function setCurrentlyValidatingElement(element) { function checkPropTypes(typeSpecs, values, location, componentName, element) { { - // $FlowFixMe This is okay but Flow doesn't know it. + // $FlowFixMe[incompatible-use] This is okay but Flow doesn't know it. var has = Function.call.bind(hasOwnProperty); for (var typeSpecName in typeSpecs) { @@ -4114,7 +4114,7 @@ var ReactStrictModeWarnings = { * problem. (Instead of a confusing exception thrown inside the implementation * of the `value` object). */ -// $FlowFixMe only called in DEV, so void return is not possible. +// $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible. function typeName(value) { { // toStringTag is needed for namespaced types like Temporal.Instant @@ -4122,11 +4122,11 @@ function typeName(value) { var type = (hasToStringTag && value[Symbol.toStringTag]) || value.constructor.name || - "Object"; // $FlowFixMe + "Object"; // $FlowFixMe[incompatible-return] return type; } -} // $FlowFixMe only called in DEV, so void return is not possible. +} // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible. function willCoercionThrow(value) { { @@ -4385,7 +4385,7 @@ var warnForMissingKey = function (child, returnFiber) {}; "React Component in warnForMissingKey should have a _store. " + "This error is likely caused by a bug in React. Please file an issue." ); - } // $FlowFixMe unable to narrow type from mixed to writable object + } // $FlowFixMe[cannot-write] unable to narrow type from mixed to writable object child._store.validated = true; var componentName = getComponentNameFromFiber(returnFiber) || "Component"; @@ -5301,7 +5301,7 @@ function createChildReconciler(shouldTrackSideEffects) { // We don't support rendering Generators because it's a mutation. // See https://github.com/facebook/react/issues/12995 if ( - typeof Symbol === "function" && // $FlowFixMe Flow doesn't know about toStringTag + typeof Symbol === "function" && // $FlowFixMe[prop-missing] Flow doesn't know about toStringTag newChildrenIterable[Symbol.toStringTag] === "Generator" ) { if (!didWarnAboutGenerators) { @@ -6759,7 +6759,7 @@ function use(usable) { } function basicStateReducer(state, action) { - // $FlowFixMe: Flow doesn't like mixed types + // $FlowFixMe[incompatible-use]: Flow doesn't like mixed types return typeof action === "function" ? action(state) : action; } @@ -7219,7 +7219,7 @@ function mountState(initialState) { var hook = mountWorkInProgressHook(); if (typeof initialState === "function") { - // $FlowFixMe: Flow doesn't like mixed types + // $FlowFixMe[incompatible-use]: Flow doesn't like mixed types initialState = initialState(); } @@ -14871,7 +14871,7 @@ function completeDehydratedSuspenseBoundary( var primaryChildFragment = workInProgress.child; if (primaryChildFragment !== null) { - // $FlowFixMe Flow doesn't support type casting in combination with the -= operator + // $FlowFixMe[unsafe-arithmetic] Flow doesn't support type casting in combination with the -= operator workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; } @@ -14902,7 +14902,7 @@ function completeDehydratedSuspenseBoundary( var _primaryChildFragment = workInProgress.child; if (_primaryChildFragment !== null) { - // $FlowFixMe Flow doesn't support type casting in combination with the -= operator + // $FlowFixMe[unsafe-arithmetic] Flow doesn't support type casting in combination with the -= operator workInProgress.treeBaseDuration -= _primaryChildFragment.treeBaseDuration; } @@ -15234,7 +15234,7 @@ function completeWork(current, workInProgress, renderLanes) { var primaryChildFragment = workInProgress.child; if (primaryChildFragment !== null) { - // $FlowFixMe Flow doesn't support type casting in combination with the -= operator + // $FlowFixMe[unsafe-arithmetic] Flow doesn't support type casting in combination with the -= operator workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; } @@ -16162,7 +16162,7 @@ function safelyDetachRef(current, nearestMountedAncestor) { } } } else { - // $FlowFixMe unable to narrow type to RefObject + // $FlowFixMe[incompatible-use] unable to narrow type to RefObject ref.current = null; } } @@ -17076,7 +17076,7 @@ function commitAttachRef(finishedWork) { getComponentNameFromFiber(finishedWork) ); } - } // $FlowFixMe unable to narrow type to the non-function case + } // $FlowFixMe[incompatible-use] unable to narrow type to the non-function case ref.current = instanceToUse; } @@ -19487,7 +19487,7 @@ function isLegacyActEnvironment(fiber) { var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name] ? IS_REACT_ACT_ENVIRONMENT - : undefined; // $FlowFixMe - Flow doesn't know about jest + : undefined; // $FlowFixMe[cannot-resolve-name] - Flow doesn't know about jest var jestIsDefined = typeof jest !== "undefined"; return jestIsDefined && isReactActEnvironmentGlobal !== false; @@ -20649,7 +20649,7 @@ function prepareFreshStack(root, lanes) { if (timeoutHandle !== noTimeout) { // The root previous suspended and scheduled a timeout to commit a fallback // state. Now that we have additional work, cancel the timeout. - root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above + root.timeoutHandle = noTimeout; // $FlowFixMe[incompatible-call] Complains noTimeout is not a TimeoutID, despite the check above cancelTimeout(timeoutHandle); } @@ -23149,7 +23149,7 @@ function FiberNode(tag, pendingProps, key, mode) { // compatible. function createFiber(tag, pendingProps, key, mode) { - // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors + // $FlowFixMe[invalid-constructor]: the shapes are exact here but Flow doesn't like constructors return new FiberNode(tag, pendingProps, key, mode); } @@ -23762,7 +23762,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-next-768f965de-20230326"; +var ReactVersion = "18.3.0-next-afea1d0c5-20230327"; // Might add PROFILE later. @@ -23932,7 +23932,7 @@ var setSuspenseHandler = null; } return updated; - } // $FlowFixMe number or string is fine here + } // $FlowFixMe[incompatible-use] number or string is fine here updated[key] = copyWithDeleteImpl(obj[key], path, index + 1); return updated; @@ -23947,7 +23947,7 @@ var setSuspenseHandler = null; var updated = isArray(obj) ? obj.slice() : assign({}, obj); if (index + 1 === oldPath.length) { - var newKey = newPath[index]; // $FlowFixMe number or string is fine here + var newKey = newPath[index]; // $FlowFixMe[incompatible-use] number or string is fine here updated[newKey] = updated[oldKey]; @@ -23957,9 +23957,9 @@ var setSuspenseHandler = null; delete updated[oldKey]; } } else { - // $FlowFixMe number or string is fine here + // $FlowFixMe[incompatible-use] number or string is fine here updated[oldKey] = copyWithRenameImpl( - // $FlowFixMe number or string is fine here + // $FlowFixMe[incompatible-use] number or string is fine here obj[oldKey], oldPath, newPath, @@ -23996,7 +23996,7 @@ var setSuspenseHandler = null; } var key = path[index]; - var updated = isArray(obj) ? obj.slice() : assign({}, obj); // $FlowFixMe number or string is fine here + var updated = isArray(obj) ? obj.slice() : assign({}, obj); // $FlowFixMe[incompatible-use] number or string is fine here updated[key] = copyWithSetImpl(obj[key], path, index + 1, value); return updated; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js index 0c3d37629ea3c..190181302d32b 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js @@ -8640,7 +8640,7 @@ var devToolsConfig$jscomp$inline_1007 = { throw Error("TestRenderer does not support findFiberByHostInstance()"); }, bundleType: 0, - version: "18.3.0-next-768f965de-20230326", + version: "18.3.0-next-afea1d0c5-20230327", rendererPackageName: "react-test-renderer" }; var internals$jscomp$inline_1198 = { @@ -8671,7 +8671,7 @@ var internals$jscomp$inline_1198 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-768f965de-20230326" + reconcilerVersion: "18.3.0-next-afea1d0c5-20230327" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1199 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js index 7feef715b5834..1aba2e69e5f6e 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js @@ -9065,7 +9065,7 @@ var devToolsConfig$jscomp$inline_1050 = { throw Error("TestRenderer does not support findFiberByHostInstance()"); }, bundleType: 0, - version: "18.3.0-next-768f965de-20230326", + version: "18.3.0-next-afea1d0c5-20230327", rendererPackageName: "react-test-renderer" }; var internals$jscomp$inline_1239 = { @@ -9096,7 +9096,7 @@ var internals$jscomp$inline_1239 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-768f965de-20230326" + reconcilerVersion: "18.3.0-next-afea1d0c5-20230327" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1240 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/JSXDEVRuntime-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/JSXDEVRuntime-dev.js index c3c7a0d5afc87..dcb92f3539df8 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/JSXDEVRuntime-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/JSXDEVRuntime-dev.js @@ -393,7 +393,7 @@ function setCurrentlyValidatingElement$1(element) { function checkPropTypes(typeSpecs, values, location, componentName, element) { { - // $FlowFixMe This is okay but Flow doesn't know it. + // $FlowFixMe[incompatible-use] This is okay but Flow doesn't know it. var has = Function.call.bind(hasOwnProperty); for (var typeSpecName in typeSpecs) { @@ -487,7 +487,7 @@ function isArray(a) { * problem. (Instead of a confusing exception thrown inside the implementation * of the `value` object). */ -// $FlowFixMe only called in DEV, so void return is not possible. +// $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible. function typeName(value) { { // toStringTag is needed for namespaced types like Temporal.Instant @@ -495,11 +495,11 @@ function typeName(value) { var type = (hasToStringTag && value[Symbol.toStringTag]) || value.constructor.name || - "Object"; // $FlowFixMe + "Object"; // $FlowFixMe[incompatible-return] return type; } -} // $FlowFixMe only called in DEV, so void return is not possible. +} // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible. function willCoercionThrow(value) { { diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/JSXRuntime-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/JSXRuntime-dev.js index 79388846a806e..5a7b9bd98ec26 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/JSXRuntime-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/JSXRuntime-dev.js @@ -393,7 +393,7 @@ function setCurrentlyValidatingElement$1(element) { function checkPropTypes(typeSpecs, values, location, componentName, element) { { - // $FlowFixMe This is okay but Flow doesn't know it. + // $FlowFixMe[incompatible-use] This is okay but Flow doesn't know it. var has = Function.call.bind(hasOwnProperty); for (var typeSpecName in typeSpecs) { @@ -487,7 +487,7 @@ function isArray(a) { * problem. (Instead of a confusing exception thrown inside the implementation * of the `value` object). */ -// $FlowFixMe only called in DEV, so void return is not possible. +// $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible. function typeName(value) { { // toStringTag is needed for namespaced types like Temporal.Instant @@ -495,11 +495,11 @@ function typeName(value) { var type = (hasToStringTag && value[Symbol.toStringTag]) || value.constructor.name || - "Object"; // $FlowFixMe + "Object"; // $FlowFixMe[incompatible-return] return type; } -} // $FlowFixMe only called in DEV, so void return is not possible. +} // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible. function willCoercionThrow(value) { { diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-dev.js index a70ee3704e90f..dd27559211576 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-dev.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-next-768f965de-20230326"; +var ReactVersion = "18.3.0-next-afea1d0c5-20230327"; // ATTENTION // When adding new symbols to this file, @@ -516,7 +516,7 @@ function isArray(a) { * problem. (Instead of a confusing exception thrown inside the implementation * of the `value` object). */ -// $FlowFixMe only called in DEV, so void return is not possible. +// $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible. function typeName(value) { { // toStringTag is needed for namespaced types like Temporal.Instant @@ -524,11 +524,11 @@ function typeName(value) { var type = (hasToStringTag && value[Symbol.toStringTag]) || value.constructor.name || - "Object"; // $FlowFixMe + "Object"; // $FlowFixMe[incompatible-return] return type; } -} // $FlowFixMe only called in DEV, so void return is not possible. +} // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible. function willCoercionThrow(value) { { @@ -1200,7 +1200,7 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { { // The `if` statement here prevents auto-disabling of the safe // coercion ESLint rule, so we must manually disable it below. - // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key + // $FlowFixMe[incompatible-type] Flow incorrectly thinks React.Portal doesn't have a key if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) { checkKeyStringCoercion(mappedChild.key); } @@ -1209,7 +1209,7 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { mappedChild = cloneAndReplaceKey( mappedChild, // Keep both the (mapped) and old keys if they differ, just as // traverseAllChildren used to do for objects as children - escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key + escapedPrefix + // $FlowFixMe[incompatible-type] Flow incorrectly thinks React.Portal doesn't have a key (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? escapeUserProvidedKey( // $FlowFixMe[unsafe-addition] @@ -1266,7 +1266,7 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { var iterator = iteratorFn.call(iterableChildren); var step; - var ii = 0; // $FlowFixMe `iteratorFn` might return null according to typing. + var ii = 0; // $FlowFixMe[incompatible-use] `iteratorFn` might return null according to typing. while (!(step = iterator.next()).done) { child = step.value; @@ -1437,7 +1437,7 @@ function createContext(defaultValue) { var Consumer = { $$typeof: REACT_CONTEXT_TYPE, _context: context - }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here + }; // $FlowFixMe[prop-missing]: Flow complains about not setting a value, which is intentional here Object.defineProperties(Consumer, { Provider: { @@ -1511,7 +1511,7 @@ function createContext(defaultValue) { } } } - }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty + }); // $FlowFixMe[prop-missing]: Flow complains about missing properties because it doesn't understand defineProperty context.Consumer = Consumer; } @@ -1617,7 +1617,7 @@ function lazy(ctor) { { // In production, this would just set it on the object. var defaultProps; - var propTypes; // $FlowFixMe + var propTypes; // $FlowFixMe[prop-missing] Object.defineProperties(lazyType, { defaultProps: { @@ -1634,7 +1634,7 @@ function lazy(ctor) { ); defaultProps = newDefaultProps; // Match production behavior more closely: - // $FlowFixMe + // $FlowFixMe[prop-missing] Object.defineProperty(lazyType, "defaultProps", { enumerable: true @@ -1655,7 +1655,7 @@ function lazy(ctor) { ); propTypes = newPropTypes; // Match production behavior more closely: - // $FlowFixMe + // $FlowFixMe[prop-missing] Object.defineProperty(lazyType, "propTypes", { enumerable: true @@ -1846,7 +1846,7 @@ function cache(fn) { if (!dispatcher) { // If there is no dispatcher, then we treat this as not being cached. - // $FlowFixMe: We don't want to use rest arguments since we transpile the code. + // $FlowFixMe[incompatible-call]: We don't want to use rest arguments since we transpile the code. return fn.apply(null, arguments); } @@ -1911,7 +1911,7 @@ function cache(fn) { } try { - // $FlowFixMe: We don't want to use rest arguments since we transpile the code. + // $FlowFixMe[incompatible-call]: We don't want to use rest arguments since we transpile the code. var result = fn.apply(null, arguments); var terminatedNode = cacheNode; terminatedNode.s = TERMINATED; @@ -2227,7 +2227,7 @@ function setCurrentlyValidatingElement$2(element) { function checkPropTypes(typeSpecs, values, location, componentName, element) { { - // $FlowFixMe This is okay but Flow doesn't know it. + // $FlowFixMe[incompatible-use] This is okay but Flow doesn't know it. var has = Function.call.bind(hasOwnProperty); for (var typeSpecName in typeSpecs) { diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-prod.js index 6852ae6a47c29..f1eba1b3b89c5 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-prod.js @@ -639,4 +639,4 @@ exports.useSyncExternalStore = function ( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-next-768f965de-20230326"; +exports.version = "18.3.0-next-afea1d0c5-20230327"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-profiling.js index 6894c4dd7232e..0a850b06f1cb9 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-profiling.js @@ -642,7 +642,7 @@ exports.useSyncExternalStore = function ( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-next-768f965de-20230326"; +exports.version = "18.3.0-next-afea1d0c5-20230327"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION index dab5c4b86a46a..4e0283afe962c 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION @@ -1 +1 @@ -768f965de2d4c6be7f688562ef02382478c82e5b +afea1d0c536e0336735b0ea5c74f635527b65785 diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js index 3e5d3c6df316c..388ac1cec5056 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js @@ -1224,10 +1224,11 @@ function accumulateInto(current, next) { if (isArray(current)) { if (isArray(next)) { - // $FlowFixMe `isArray` does not ensure array is mutable + // $FlowFixMe[prop-missing] `isArray` does not ensure array is mutable + // $FlowFixMe[method-unbinding] current.push.apply(current, next); return current; - } // $FlowFixMe `isArray` does not ensure array is mutable + } // $FlowFixMe[prop-missing] `isArray` does not ensure array is mutable current.push(next); return current; @@ -2479,7 +2480,7 @@ var ReactNativeBridgeEventPlugin = { var directDispatchConfig = customDirectEventTypes[topLevelType]; if (!bubbleDispatchConfig && !directDispatchConfig) { - throw new Error( // $FlowFixMe - Flow doesn't like this string coercion because DOMTopLevelEventType is opaque + throw new Error( // $FlowFixMe[incompatible-type] - Flow doesn't like this string coercion because DOMTopLevelEventType is opaque 'Unsupported top level event type "' + topLevelType + '" dispatched' ); } @@ -2720,8 +2721,8 @@ function diffNestedProperty( if (isArray(prevProp)) { return diffProperties( - updatePayload, // $FlowFixMe - We know that this is always an object when the input is. - ReactNativePrivateInterface.flattenStyle(prevProp), // $FlowFixMe - We know that this isn't an array because of above flow. + updatePayload, + ReactNativePrivateInterface.flattenStyle(prevProp), nextProp, validAttributes ); @@ -2729,7 +2730,7 @@ function diffNestedProperty( return diffProperties( updatePayload, - prevProp, // $FlowFixMe - We know that this is always an object when the input is. + prevProp, ReactNativePrivateInterface.flattenStyle(nextProp), validAttributes ); @@ -3371,7 +3372,7 @@ function disableLogs() { enumerable: true, value: disabledLog, writable: true - }; // $FlowFixMe Flow thinks console is immutable. + }; // $FlowFixMe[cannot-write] Flow thinks console is immutable. Object.defineProperties(console, { info: props, @@ -3398,7 +3399,7 @@ function reenableLogs() { configurable: true, enumerable: true, writable: true - }; // $FlowFixMe Flow thinks console is immutable. + }; // $FlowFixMe[cannot-write] Flow thinks console is immutable. Object.defineProperties(console, { log: assign({}, props, { @@ -5846,7 +5847,7 @@ function setCurrentlyValidatingElement(element) { function checkPropTypes(typeSpecs, values, location, componentName, element) { { - // $FlowFixMe This is okay but Flow doesn't know it. + // $FlowFixMe[incompatible-use] This is okay but Flow doesn't know it. var has = Function.call.bind(hasOwnProperty); for (var typeSpecName in typeSpecs) { @@ -7811,7 +7812,7 @@ var ReactStrictModeWarnings = { * problem. (Instead of a confusing exception thrown inside the implementation * of the `value` object). */ -// $FlowFixMe only called in DEV, so void return is not possible. +// $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible. function typeName(value) { { // toStringTag is needed for namespaced types like Temporal.Instant @@ -7819,11 +7820,11 @@ function typeName(value) { var type = (hasToStringTag && value[Symbol.toStringTag]) || value.constructor.name || - "Object"; // $FlowFixMe + "Object"; // $FlowFixMe[incompatible-return] return type; } -} // $FlowFixMe only called in DEV, so void return is not possible. +} // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible. function willCoercionThrow(value) { { @@ -8095,7 +8096,7 @@ var warnForMissingKey = function (child, returnFiber) {}; "React Component in warnForMissingKey should have a _store. " + "This error is likely caused by a bug in React. Please file an issue." ); - } // $FlowFixMe unable to narrow type from mixed to writable object + } // $FlowFixMe[cannot-write] unable to narrow type from mixed to writable object child._store.validated = true; var componentName = getComponentNameFromFiber(returnFiber) || "Component"; @@ -9011,7 +9012,7 @@ function createChildReconciler(shouldTrackSideEffects) { // We don't support rendering Generators because it's a mutation. // See https://github.com/facebook/react/issues/12995 if ( - typeof Symbol === "function" && // $FlowFixMe Flow doesn't know about toStringTag + typeof Symbol === "function" && // $FlowFixMe[prop-missing] Flow doesn't know about toStringTag newChildrenIterable[Symbol.toStringTag] === "Generator" ) { if (!didWarnAboutGenerators) { @@ -10590,7 +10591,7 @@ function useMemoCache(size) { } function basicStateReducer(state, action) { - // $FlowFixMe: Flow doesn't like mixed types + // $FlowFixMe[incompatible-use]: Flow doesn't like mixed types return typeof action === "function" ? action(state) : action; } @@ -11287,7 +11288,7 @@ function mountState(initialState) { var hook = mountWorkInProgressHook(); if (typeof initialState === "function") { - // $FlowFixMe: Flow doesn't like mixed types + // $FlowFixMe[incompatible-use]: Flow doesn't like mixed types initialState = initialState(); } @@ -18963,7 +18964,7 @@ function completeDehydratedSuspenseBoundary( var primaryChildFragment = workInProgress.child; if (primaryChildFragment !== null) { - // $FlowFixMe Flow doesn't support type casting in combination with the -= operator + // $FlowFixMe[unsafe-arithmetic] Flow doesn't support type casting in combination with the -= operator workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; } @@ -18994,7 +18995,7 @@ function completeDehydratedSuspenseBoundary( var _primaryChildFragment = workInProgress.child; if (_primaryChildFragment !== null) { - // $FlowFixMe Flow doesn't support type casting in combination with the -= operator + // $FlowFixMe[unsafe-arithmetic] Flow doesn't support type casting in combination with the -= operator workInProgress.treeBaseDuration -= _primaryChildFragment.treeBaseDuration; } @@ -19288,7 +19289,7 @@ function completeWork(current, workInProgress, renderLanes) { var primaryChildFragment = workInProgress.child; if (primaryChildFragment !== null) { - // $FlowFixMe Flow doesn't support type casting in combination with the -= operator + // $FlowFixMe[unsafe-arithmetic] Flow doesn't support type casting in combination with the -= operator workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; } @@ -19910,7 +19911,7 @@ function safelyDetachRef(current, nearestMountedAncestor) { } } } else { - // $FlowFixMe unable to narrow type to RefObject + // $FlowFixMe[incompatible-use] unable to narrow type to RefObject ref.current = null; } } @@ -20771,7 +20772,7 @@ function commitAttachRef(finishedWork) { getComponentNameFromFiber(finishedWork) ); } - } // $FlowFixMe unable to narrow type to the non-function case + } // $FlowFixMe[incompatible-use] unable to narrow type to the non-function case ref.current = instanceToUse; } @@ -22547,7 +22548,7 @@ function isLegacyActEnvironment(fiber) { // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name] ? IS_REACT_ACT_ENVIRONMENT - : undefined; // $FlowFixMe - Flow doesn't know about jest + : undefined; // $FlowFixMe[cannot-resolve-name] - Flow doesn't know about jest return warnsIfNotActing; } } @@ -23712,7 +23713,7 @@ function prepareFreshStack(root, lanes) { if (timeoutHandle !== noTimeout) { // The root previous suspended and scheduled a timeout to commit a fallback // state. Now that we have additional work, cancel the timeout. - root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above + root.timeoutHandle = noTimeout; // $FlowFixMe[incompatible-call] Complains noTimeout is not a TimeoutID, despite the check above cancelTimeout(timeoutHandle); } @@ -26355,7 +26356,7 @@ function FiberNode(tag, pendingProps, key, mode) { // compatible. function createFiber(tag, pendingProps, key, mode) { - // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors + // $FlowFixMe[invalid-constructor]: the shapes are exact here but Flow doesn't like constructors return new FiberNode(tag, pendingProps, key, mode); } @@ -27027,7 +27028,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-next-768f965de-20230326"; +var ReactVersion = "18.3.0-next-afea1d0c5-20230327"; function createPortal$1( children, @@ -27295,7 +27296,7 @@ var setSuspenseHandler = null; } return updated; - } // $FlowFixMe number or string is fine here + } // $FlowFixMe[incompatible-use] number or string is fine here updated[key] = copyWithDeleteImpl(obj[key], path, index + 1); return updated; @@ -27310,7 +27311,7 @@ var setSuspenseHandler = null; var updated = isArray(obj) ? obj.slice() : assign({}, obj); if (index + 1 === oldPath.length) { - var newKey = newPath[index]; // $FlowFixMe number or string is fine here + var newKey = newPath[index]; // $FlowFixMe[incompatible-use] number or string is fine here updated[newKey] = updated[oldKey]; @@ -27320,9 +27321,9 @@ var setSuspenseHandler = null; delete updated[oldKey]; } } else { - // $FlowFixMe number or string is fine here + // $FlowFixMe[incompatible-use] number or string is fine here updated[oldKey] = copyWithRenameImpl( - // $FlowFixMe number or string is fine here + // $FlowFixMe[incompatible-use] number or string is fine here obj[oldKey], oldPath, newPath, @@ -27359,7 +27360,7 @@ var setSuspenseHandler = null; } var key = path[index]; - var updated = isArray(obj) ? obj.slice() : assign({}, obj); // $FlowFixMe number or string is fine here + var updated = isArray(obj) ? obj.slice() : assign({}, obj); // $FlowFixMe[incompatible-use] number or string is fine here updated[key] = copyWithSetImpl(obj[key], path, index + 1, value); return updated; @@ -28027,8 +28028,7 @@ function render(element, containerTag, callback, concurrentRoot) { roots.set(containerTag, root); } - updateContainer(element, root, null, callback); // $FlowFixMe Flow has hardcoded values for React DOM that don't work with RN - + updateContainer(element, root, null, callback); return getPublicRootInstance(root); } // $FlowFixMe[missing-this-annot] diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js index 4cd5aaae585cc..93427659c5938 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js @@ -9507,7 +9507,7 @@ var roots = new Map(), devToolsConfig$jscomp$inline_1027 = { findFiberByHostInstance: getInstanceFromNode, bundleType: 0, - version: "18.3.0-next-768f965de-20230326", + version: "18.3.0-next-afea1d0c5-20230327", rendererPackageName: "react-native-renderer", rendererConfig: { getInspectorDataForViewTag: function () { @@ -9549,7 +9549,7 @@ var internals$jscomp$inline_1273 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-768f965de-20230326" + reconcilerVersion: "18.3.0-next-afea1d0c5-20230327" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1274 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js index e28fbf5446437..616d132e44c4d 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js @@ -10215,7 +10215,7 @@ var roots = new Map(), devToolsConfig$jscomp$inline_1106 = { findFiberByHostInstance: getInstanceFromNode, bundleType: 0, - version: "18.3.0-next-768f965de-20230326", + version: "18.3.0-next-afea1d0c5-20230327", rendererPackageName: "react-native-renderer", rendererConfig: { getInspectorDataForViewTag: function () { @@ -10270,7 +10270,7 @@ var roots = new Map(), scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-768f965de-20230326" + reconcilerVersion: "18.3.0-next-afea1d0c5-20230327" }); exports.createPortal = function (children, containerTag) { return createPortal$1( diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js index e9df167f7d9af..a9603e6d8d0e6 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js @@ -1224,10 +1224,11 @@ function accumulateInto(current, next) { if (isArray(current)) { if (isArray(next)) { - // $FlowFixMe `isArray` does not ensure array is mutable + // $FlowFixMe[prop-missing] `isArray` does not ensure array is mutable + // $FlowFixMe[method-unbinding] current.push.apply(current, next); return current; - } // $FlowFixMe `isArray` does not ensure array is mutable + } // $FlowFixMe[prop-missing] `isArray` does not ensure array is mutable current.push(next); return current; @@ -2479,7 +2480,7 @@ var ReactNativeBridgeEventPlugin = { var directDispatchConfig = customDirectEventTypes[topLevelType]; if (!bubbleDispatchConfig && !directDispatchConfig) { - throw new Error( // $FlowFixMe - Flow doesn't like this string coercion because DOMTopLevelEventType is opaque + throw new Error( // $FlowFixMe[incompatible-type] - Flow doesn't like this string coercion because DOMTopLevelEventType is opaque 'Unsupported top level event type "' + topLevelType + '" dispatched' ); } @@ -2857,7 +2858,7 @@ function receiveTouches(eventTopLevelType, touches, changedIndices) { } else { rootNodeID = target; } - } // $FlowFixMe Shouldn't we *not* call it if rootNodeID is null? + } // $FlowFixMe[incompatible-call] Shouldn't we *not* call it if rootNodeID is null? _receiveRootNodeIDEvent(rootNodeID, eventTopLevelType, nativeEvent); } @@ -3757,8 +3758,8 @@ function diffNestedProperty( if (isArray(prevProp)) { return diffProperties( - updatePayload, // $FlowFixMe - We know that this is always an object when the input is. - ReactNativePrivateInterface.flattenStyle(prevProp), // $FlowFixMe - We know that this isn't an array because of above flow. + updatePayload, + ReactNativePrivateInterface.flattenStyle(prevProp), nextProp, validAttributes ); @@ -3766,7 +3767,7 @@ function diffNestedProperty( return diffProperties( updatePayload, - prevProp, // $FlowFixMe - We know that this is always an object when the input is. + prevProp, ReactNativePrivateInterface.flattenStyle(nextProp), validAttributes ); @@ -4233,7 +4234,7 @@ function disableLogs() { enumerable: true, value: disabledLog, writable: true - }; // $FlowFixMe Flow thinks console is immutable. + }; // $FlowFixMe[cannot-write] Flow thinks console is immutable. Object.defineProperties(console, { info: props, @@ -4260,7 +4261,7 @@ function reenableLogs() { configurable: true, enumerable: true, writable: true - }; // $FlowFixMe Flow thinks console is immutable. + }; // $FlowFixMe[cannot-write] Flow thinks console is immutable. Object.defineProperties(console, { log: assign({}, props, { @@ -6190,7 +6191,7 @@ function setCurrentlyValidatingElement(element) { function checkPropTypes(typeSpecs, values, location, componentName, element) { { - // $FlowFixMe This is okay but Flow doesn't know it. + // $FlowFixMe[incompatible-use] This is okay but Flow doesn't know it. var has = Function.call.bind(hasOwnProperty); for (var typeSpecName in typeSpecs) { @@ -8155,7 +8156,7 @@ var ReactStrictModeWarnings = { * problem. (Instead of a confusing exception thrown inside the implementation * of the `value` object). */ -// $FlowFixMe only called in DEV, so void return is not possible. +// $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible. function typeName(value) { { // toStringTag is needed for namespaced types like Temporal.Instant @@ -8163,11 +8164,11 @@ function typeName(value) { var type = (hasToStringTag && value[Symbol.toStringTag]) || value.constructor.name || - "Object"; // $FlowFixMe + "Object"; // $FlowFixMe[incompatible-return] return type; } -} // $FlowFixMe only called in DEV, so void return is not possible. +} // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible. function willCoercionThrow(value) { { @@ -8439,7 +8440,7 @@ var warnForMissingKey = function (child, returnFiber) {}; "React Component in warnForMissingKey should have a _store. " + "This error is likely caused by a bug in React. Please file an issue." ); - } // $FlowFixMe unable to narrow type from mixed to writable object + } // $FlowFixMe[cannot-write] unable to narrow type from mixed to writable object child._store.validated = true; var componentName = getComponentNameFromFiber(returnFiber) || "Component"; @@ -9355,7 +9356,7 @@ function createChildReconciler(shouldTrackSideEffects) { // We don't support rendering Generators because it's a mutation. // See https://github.com/facebook/react/issues/12995 if ( - typeof Symbol === "function" && // $FlowFixMe Flow doesn't know about toStringTag + typeof Symbol === "function" && // $FlowFixMe[prop-missing] Flow doesn't know about toStringTag newChildrenIterable[Symbol.toStringTag] === "Generator" ) { if (!didWarnAboutGenerators) { @@ -10934,7 +10935,7 @@ function useMemoCache(size) { } function basicStateReducer(state, action) { - // $FlowFixMe: Flow doesn't like mixed types + // $FlowFixMe[incompatible-use]: Flow doesn't like mixed types return typeof action === "function" ? action(state) : action; } @@ -11631,7 +11632,7 @@ function mountState(initialState) { var hook = mountWorkInProgressHook(); if (typeof initialState === "function") { - // $FlowFixMe: Flow doesn't like mixed types + // $FlowFixMe[incompatible-use]: Flow doesn't like mixed types initialState = initialState(); } @@ -19108,7 +19109,7 @@ function completeDehydratedSuspenseBoundary( var primaryChildFragment = workInProgress.child; if (primaryChildFragment !== null) { - // $FlowFixMe Flow doesn't support type casting in combination with the -= operator + // $FlowFixMe[unsafe-arithmetic] Flow doesn't support type casting in combination with the -= operator workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; } @@ -19139,7 +19140,7 @@ function completeDehydratedSuspenseBoundary( var _primaryChildFragment = workInProgress.child; if (_primaryChildFragment !== null) { - // $FlowFixMe Flow doesn't support type casting in combination with the -= operator + // $FlowFixMe[unsafe-arithmetic] Flow doesn't support type casting in combination with the -= operator workInProgress.treeBaseDuration -= _primaryChildFragment.treeBaseDuration; } @@ -19437,7 +19438,7 @@ function completeWork(current, workInProgress, renderLanes) { var primaryChildFragment = workInProgress.child; if (primaryChildFragment !== null) { - // $FlowFixMe Flow doesn't support type casting in combination with the -= operator + // $FlowFixMe[unsafe-arithmetic] Flow doesn't support type casting in combination with the -= operator workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration; } @@ -20058,7 +20059,7 @@ function safelyDetachRef(current, nearestMountedAncestor) { } } } else { - // $FlowFixMe unable to narrow type to RefObject + // $FlowFixMe[incompatible-use] unable to narrow type to RefObject ref.current = null; } } @@ -20997,7 +20998,7 @@ function commitAttachRef(finishedWork) { getComponentNameFromFiber(finishedWork) ); } - } // $FlowFixMe unable to narrow type to the non-function case + } // $FlowFixMe[incompatible-use] unable to narrow type to the non-function case ref.current = instanceToUse; } @@ -23085,7 +23086,7 @@ function isLegacyActEnvironment(fiber) { var isReactActEnvironmentGlobal = // $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" // $FlowFixMe[cannot-resolve-name] ? IS_REACT_ACT_ENVIRONMENT - : undefined; // $FlowFixMe - Flow doesn't know about jest + : undefined; // $FlowFixMe[cannot-resolve-name] - Flow doesn't know about jest var jestIsDefined = typeof jest !== "undefined"; return jestIsDefined && isReactActEnvironmentGlobal !== false; @@ -24252,7 +24253,7 @@ function prepareFreshStack(root, lanes) { if (timeoutHandle !== noTimeout) { // The root previous suspended and scheduled a timeout to commit a fallback // state. Now that we have additional work, cancel the timeout. - root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above + root.timeoutHandle = noTimeout; // $FlowFixMe[incompatible-call] Complains noTimeout is not a TimeoutID, despite the check above cancelTimeout(timeoutHandle); } @@ -26895,7 +26896,7 @@ function FiberNode(tag, pendingProps, key, mode) { // compatible. function createFiber(tag, pendingProps, key, mode) { - // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors + // $FlowFixMe[invalid-constructor]: the shapes are exact here but Flow doesn't like constructors return new FiberNode(tag, pendingProps, key, mode); } @@ -27567,7 +27568,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-next-768f965de-20230326"; +var ReactVersion = "18.3.0-next-afea1d0c5-20230327"; function createPortal$1( children, @@ -27835,7 +27836,7 @@ var setSuspenseHandler = null; } return updated; - } // $FlowFixMe number or string is fine here + } // $FlowFixMe[incompatible-use] number or string is fine here updated[key] = copyWithDeleteImpl(obj[key], path, index + 1); return updated; @@ -27850,7 +27851,7 @@ var setSuspenseHandler = null; var updated = isArray(obj) ? obj.slice() : assign({}, obj); if (index + 1 === oldPath.length) { - var newKey = newPath[index]; // $FlowFixMe number or string is fine here + var newKey = newPath[index]; // $FlowFixMe[incompatible-use] number or string is fine here updated[newKey] = updated[oldKey]; @@ -27860,9 +27861,9 @@ var setSuspenseHandler = null; delete updated[oldKey]; } } else { - // $FlowFixMe number or string is fine here + // $FlowFixMe[incompatible-use] number or string is fine here updated[oldKey] = copyWithRenameImpl( - // $FlowFixMe number or string is fine here + // $FlowFixMe[incompatible-use] number or string is fine here obj[oldKey], oldPath, newPath, @@ -27899,7 +27900,7 @@ var setSuspenseHandler = null; } var key = path[index]; - var updated = isArray(obj) ? obj.slice() : assign({}, obj); // $FlowFixMe number or string is fine here + var updated = isArray(obj) ? obj.slice() : assign({}, obj); // $FlowFixMe[incompatible-use] number or string is fine here updated[key] = copyWithSetImpl(obj[key], path, index + 1, value); return updated; @@ -28561,8 +28562,7 @@ function render(element, containerTag, callback) { roots.set(containerTag, root); } - updateContainer(element, root, null, callback); // $FlowFixMe Flow has hardcoded values for React DOM that don't work with RN - + updateContainer(element, root, null, callback); return getPublicRootInstance(root); } diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js index 25b2d2689c3f7..8aa8018b2c47a 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js @@ -9763,7 +9763,7 @@ var roots = new Map(), devToolsConfig$jscomp$inline_1086 = { findFiberByHostInstance: getInstanceFromTag, bundleType: 0, - version: "18.3.0-next-768f965de-20230326", + version: "18.3.0-next-afea1d0c5-20230327", rendererPackageName: "react-native-renderer", rendererConfig: { getInspectorDataForViewTag: function () { @@ -9805,7 +9805,7 @@ var internals$jscomp$inline_1339 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-768f965de-20230326" + reconcilerVersion: "18.3.0-next-afea1d0c5-20230327" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1340 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js index 9cad2bb386dd9..2586f13562d20 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js @@ -10471,7 +10471,7 @@ var roots = new Map(), devToolsConfig$jscomp$inline_1165 = { findFiberByHostInstance: getInstanceFromTag, bundleType: 0, - version: "18.3.0-next-768f965de-20230326", + version: "18.3.0-next-afea1d0c5-20230327", rendererPackageName: "react-native-renderer", rendererConfig: { getInspectorDataForViewTag: function () { @@ -10526,7 +10526,7 @@ var roots = new Map(), scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-768f965de-20230326" + reconcilerVersion: "18.3.0-next-afea1d0c5-20230327" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = { computeComponentStackForErrorReporting: function (reactTag) {