Skip to content

Commit

Permalink
[flags] Cleanup enableCache (facebook#31778)
Browse files Browse the repository at this point in the history
This is landed everywhere

DiffTrain build for [e06c72f](facebook@e06c72f)
  • Loading branch information
pull[bot] committed Dec 15, 2024
1 parent cba1fef commit 92ccdcf
Show file tree
Hide file tree
Showing 23 changed files with 156 additions and 177 deletions.
2 changes: 1 addition & 1 deletion compiled-rn/VERSION_NATIVE_FB
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19.1.0-native-fb-c80b336d-20241214
19.1.0-native-fb-e06c72fc-20241215
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b04d7e4586e35d0745cc706e21d118d8>>
* @generated SignedSource<<9926d2aac6782c4d4cdbae0e84d1517e>>
*/

"use strict";
Expand Down Expand Up @@ -420,5 +420,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-c80b336d-20241214";
exports.version = "19.1.0-native-fb-e06c72fc-20241215";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f0bcb042fc8317d7226f720e52e855bc>>
* @generated SignedSource<<40044f2b73d92b559f25b1f678a2fc3c>>
*/

"use strict";
Expand Down Expand Up @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-c80b336d-20241214";
exports.version = "19.1.0-native-fb-e06c72fc-20241215";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<f0bcb042fc8317d7226f720e52e855bc>>
* @generated SignedSource<<40044f2b73d92b559f25b1f678a2fc3c>>
*/

"use strict";
Expand Down Expand Up @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-c80b336d-20241214";
exports.version = "19.1.0-native-fb-e06c72fc-20241215";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<03e01f84cb39808b8c90a7dbf92877e6>>
* @generated SignedSource<<7631d97db34554856db19e5d2b32fbe2>>
*/

/*
Expand Down Expand Up @@ -22148,7 +22148,6 @@ __DEV__ &&
REACT_MEMO_TYPE = Symbol.for("react.memo"),
REACT_LAZY_TYPE = Symbol.for("react.lazy");
Symbol.for("react.scope");
Symbol.for("react.debug_trace_mode");
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
Symbol.for("react.legacy_hidden");
Symbol.for("react.tracing_marker");
Expand Down Expand Up @@ -23759,9 +23758,9 @@ __DEV__ &&
useFormState: throwInvalidHookError,
useActionState: throwInvalidHookError,
useOptimistic: throwInvalidHookError,
useMemoCache: throwInvalidHookError
useMemoCache: throwInvalidHookError,
useCacheRefresh: throwInvalidHookError
};
ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError;
enableUseResourceEffectHook &&
(ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError);
var HooksDispatcherOnMountInDEV = null,
Expand Down Expand Up @@ -25892,11 +25891,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-native-fb-c80b336d-20241214" !== isomorphicReactPackageVersion)
if ("19.1.0-native-fb-e06c72fc-20241215" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.1.0-native-fb-c80b336d-20241214\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-native-fb-e06c72fc-20241215\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -25933,10 +25932,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-native-fb-c80b336d-20241214",
version: "19.1.0-native-fb-e06c72fc-20241215",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-c80b336d-20241214"
reconcilerVersion: "19.1.0-native-fb-e06c72fc-20241215"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -26082,5 +26081,5 @@ __DEV__ &&
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.1.0-native-fb-c80b336d-20241214";
exports.version = "19.1.0-native-fb-e06c72fc-20241215";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<ab5533847781b92efa975129c69ae83a>>
* @generated SignedSource<<0bd0131f657cf6165007ce600d7673fb>>
*/

/*
Expand Down Expand Up @@ -61,7 +61,6 @@ var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_MEMO_TYPE = Symbol.for("react.memo"),
REACT_LAZY_TYPE = Symbol.for("react.lazy");
Symbol.for("react.scope");
Symbol.for("react.debug_trace_mode");
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
Symbol.for("react.legacy_hidden");
Symbol.for("react.tracing_marker");
Expand Down Expand Up @@ -4296,9 +4295,9 @@ var ContextOnlyDispatcher = {
useFormState: throwInvalidHookError,
useActionState: throwInvalidHookError,
useOptimistic: throwInvalidHookError,
useMemoCache: throwInvalidHookError
useMemoCache: throwInvalidHookError,
useCacheRefresh: throwInvalidHookError
};
ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError;
enableUseResourceEffectHook &&
(ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError);
var HooksDispatcherOnMount = {
Expand Down Expand Up @@ -4538,9 +4537,9 @@ var HooksDispatcherOnUpdate = {
var hook = updateWorkInProgressHook();
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
},
useMemoCache: useMemoCache
useMemoCache: useMemoCache,
useCacheRefresh: updateRefresh
};
HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh;
enableUseResourceEffectHook &&
(HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect);
var HooksDispatcherOnRerender = {
Expand Down Expand Up @@ -4592,9 +4591,9 @@ var HooksDispatcherOnRerender = {
hook.baseState = passthrough;
return [passthrough, hook.queue.dispatch];
},
useMemoCache: useMemoCache
useMemoCache: useMemoCache,
useCacheRefresh: updateRefresh
};
HooksDispatcherOnRerender.useCacheRefresh = updateRefresh;
enableUseResourceEffectHook &&
(HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect);
var thenableState = null,
Expand Down Expand Up @@ -15868,14 +15867,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1722 = React.version;
if (
"19.1.0-native-fb-c80b336d-20241214" !==
"19.1.0-native-fb-e06c72fc-20241215" !==
isomorphicReactPackageVersion$jscomp$inline_1722
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1722,
"19.1.0-native-fb-c80b336d-20241214"
"19.1.0-native-fb-e06c72fc-20241215"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -15897,10 +15896,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2177 = {
bundleType: 0,
version: "19.1.0-native-fb-c80b336d-20241214",
version: "19.1.0-native-fb-e06c72fc-20241215",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-c80b336d-20241214"
reconcilerVersion: "19.1.0-native-fb-e06c72fc-20241215"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2178 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -16006,4 +16005,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.1.0-native-fb-c80b336d-20241214";
exports.version = "19.1.0-native-fb-e06c72fc-20241215";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<1681109a0889143a0df7d9cf010ae81f>>
* @generated SignedSource<<b7bea36bc8991c762b087566dbbd5e81>>
*/

/*
Expand Down Expand Up @@ -61,7 +61,6 @@ var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_MEMO_TYPE = Symbol.for("react.memo"),
REACT_LAZY_TYPE = Symbol.for("react.lazy");
Symbol.for("react.scope");
Symbol.for("react.debug_trace_mode");
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
Symbol.for("react.legacy_hidden");
Symbol.for("react.tracing_marker");
Expand Down Expand Up @@ -4448,9 +4447,9 @@ var ContextOnlyDispatcher = {
useFormState: throwInvalidHookError,
useActionState: throwInvalidHookError,
useOptimistic: throwInvalidHookError,
useMemoCache: throwInvalidHookError
useMemoCache: throwInvalidHookError,
useCacheRefresh: throwInvalidHookError
};
ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError;
enableUseResourceEffectHook &&
(ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError);
var HooksDispatcherOnMount = {
Expand Down Expand Up @@ -4690,9 +4689,9 @@ var HooksDispatcherOnUpdate = {
var hook = updateWorkInProgressHook();
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
},
useMemoCache: useMemoCache
useMemoCache: useMemoCache,
useCacheRefresh: updateRefresh
};
HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh;
enableUseResourceEffectHook &&
(HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect);
var HooksDispatcherOnRerender = {
Expand Down Expand Up @@ -4744,9 +4743,9 @@ var HooksDispatcherOnRerender = {
hook.baseState = passthrough;
return [passthrough, hook.queue.dispatch];
},
useMemoCache: useMemoCache
useMemoCache: useMemoCache,
useCacheRefresh: updateRefresh
};
HooksDispatcherOnRerender.useCacheRefresh = updateRefresh;
enableUseResourceEffectHook &&
(HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect);
var thenableState = null,
Expand Down Expand Up @@ -16521,14 +16520,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1812 = React.version;
if (
"19.1.0-native-fb-c80b336d-20241214" !==
"19.1.0-native-fb-e06c72fc-20241215" !==
isomorphicReactPackageVersion$jscomp$inline_1812
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1812,
"19.1.0-native-fb-c80b336d-20241214"
"19.1.0-native-fb-e06c72fc-20241215"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -16550,10 +16549,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_1819 = {
bundleType: 0,
version: "19.1.0-native-fb-c80b336d-20241214",
version: "19.1.0-native-fb-e06c72fc-20241215",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-c80b336d-20241214",
reconcilerVersion: "19.1.0-native-fb-e06c72fc-20241215",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$292 = 0;
Expand Down Expand Up @@ -16674,4 +16673,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.1.0-native-fb-c80b336d-20241214";
exports.version = "19.1.0-native-fb-e06c72fc-20241215";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<719f0629f8481ddd89d7c9288e4aa8b4>>
* @generated SignedSource<<e5d1903005849c428b135dae1ed10dbf>>
*/

/*
Expand Down Expand Up @@ -22209,7 +22209,6 @@ __DEV__ &&
REACT_MEMO_TYPE = Symbol.for("react.memo"),
REACT_LAZY_TYPE = Symbol.for("react.lazy");
Symbol.for("react.scope");
Symbol.for("react.debug_trace_mode");
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
Symbol.for("react.legacy_hidden");
Symbol.for("react.tracing_marker");
Expand Down Expand Up @@ -23820,9 +23819,9 @@ __DEV__ &&
useFormState: throwInvalidHookError,
useActionState: throwInvalidHookError,
useOptimistic: throwInvalidHookError,
useMemoCache: throwInvalidHookError
useMemoCache: throwInvalidHookError,
useCacheRefresh: throwInvalidHookError
};
ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError;
enableUseResourceEffectHook &&
(ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError);
var HooksDispatcherOnMountInDEV = null,
Expand Down Expand Up @@ -25953,11 +25952,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-native-fb-c80b336d-20241214" !== isomorphicReactPackageVersion)
if ("19.1.0-native-fb-e06c72fc-20241215" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.1.0-native-fb-c80b336d-20241214\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-native-fb-e06c72fc-20241215\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -25994,10 +25993,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-native-fb-c80b336d-20241214",
version: "19.1.0-native-fb-e06c72fc-20241215",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-c80b336d-20241214"
reconcilerVersion: "19.1.0-native-fb-e06c72fc-20241215"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -26459,7 +26458,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-c80b336d-20241214";
exports.version = "19.1.0-native-fb-e06c72fc-20241215";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Loading

0 comments on commit 92ccdcf

Please sign in to comment.