Skip to content

Commit

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

DiffTrain build for [e06c72f](e06c72f)
  • Loading branch information
rickhanlonii committed Dec 15, 2024
1 parent ddf7c2d commit b2af848
Show file tree
Hide file tree
Showing 23 changed files with 156 additions and 156 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-2d320563-20241215
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<<0c63c34375f40602a015b00bad91d615>>
* @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-2d320563-20241215";
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<<88ae68ebcf623ca5914238f2806d4286>>
* @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-2d320563-20241215";
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<<88ae68ebcf623ca5914238f2806d4286>>
* @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-2d320563-20241215";
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<<b1997b3c7b2a69bcc7e8e5c44927831d>>
* @generated SignedSource<<7631d97db34554856db19e5d2b32fbe2>>
*/

/*
Expand Down Expand Up @@ -23758,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 @@ -25891,11 +25891,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-native-fb-2d320563-20241215" !== 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-2d320563-20241215\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 @@ -25932,10 +25932,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-native-fb-2d320563-20241215",
version: "19.1.0-native-fb-e06c72fc-20241215",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-2d320563-20241215"
reconcilerVersion: "19.1.0-native-fb-e06c72fc-20241215"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -26081,5 +26081,5 @@ __DEV__ &&
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.1.0-native-fb-2d320563-20241215";
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<<3e25592e8b92af0b4b50eb0a50e87b30>>
* @generated SignedSource<<0bd0131f657cf6165007ce600d7673fb>>
*/

/*
Expand Down Expand Up @@ -4295,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 @@ -4537,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 @@ -4591,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 @@ -15867,14 +15867,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1722 = React.version;
if (
"19.1.0-native-fb-2d320563-20241215" !==
"19.1.0-native-fb-e06c72fc-20241215" !==
isomorphicReactPackageVersion$jscomp$inline_1722
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1722,
"19.1.0-native-fb-2d320563-20241215"
"19.1.0-native-fb-e06c72fc-20241215"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -15896,10 +15896,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2177 = {
bundleType: 0,
version: "19.1.0-native-fb-2d320563-20241215",
version: "19.1.0-native-fb-e06c72fc-20241215",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-2d320563-20241215"
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 @@ -16005,4 +16005,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.1.0-native-fb-2d320563-20241215";
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<<7aab05ec081ebb0275c02a7bbbe43921>>
* @generated SignedSource<<b7bea36bc8991c762b087566dbbd5e81>>
*/

/*
Expand Down Expand Up @@ -4447,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 @@ -4689,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 @@ -4743,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 @@ -16520,14 +16520,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1812 = React.version;
if (
"19.1.0-native-fb-2d320563-20241215" !==
"19.1.0-native-fb-e06c72fc-20241215" !==
isomorphicReactPackageVersion$jscomp$inline_1812
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1812,
"19.1.0-native-fb-2d320563-20241215"
"19.1.0-native-fb-e06c72fc-20241215"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -16549,10 +16549,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_1819 = {
bundleType: 0,
version: "19.1.0-native-fb-2d320563-20241215",
version: "19.1.0-native-fb-e06c72fc-20241215",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-2d320563-20241215",
reconcilerVersion: "19.1.0-native-fb-e06c72fc-20241215",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$292 = 0;
Expand Down Expand Up @@ -16673,4 +16673,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.1.0-native-fb-2d320563-20241215";
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<<4a01f0648b3bb0ab796408b5e02b0346>>
* @generated SignedSource<<e5d1903005849c428b135dae1ed10dbf>>
*/

/*
Expand Down Expand Up @@ -23819,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 @@ -25952,11 +25952,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-native-fb-2d320563-20241215" !== 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-2d320563-20241215\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 @@ -25993,10 +25993,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-native-fb-2d320563-20241215",
version: "19.1.0-native-fb-e06c72fc-20241215",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-2d320563-20241215"
reconcilerVersion: "19.1.0-native-fb-e06c72fc-20241215"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -26458,7 +26458,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-2d320563-20241215";
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 b2af848

Please sign in to comment.