Skip to content

Commit b2af848

Browse files
committed
[flags] Cleanup enableCache (#31778)
This is landed everywhere DiffTrain build for [e06c72f](e06c72f)
1 parent ddf7c2d commit b2af848

23 files changed

+156
-156
lines changed

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.1.0-native-fb-2d320563-20241215
1+
19.1.0-native-fb-e06c72fc-20241215

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<0c63c34375f40602a015b00bad91d615>>
10+
* @generated SignedSource<<9926d2aac6782c4d4cdbae0e84d1517e>>
1111
*/
1212

1313
"use strict";
@@ -420,5 +420,5 @@ __DEV__ &&
420420
exports.useFormStatus = function () {
421421
return resolveDispatcher().useHostTransitionStatus();
422422
};
423-
exports.version = "19.1.0-native-fb-2d320563-20241215";
423+
exports.version = "19.1.0-native-fb-e06c72fc-20241215";
424424
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<88ae68ebcf623ca5914238f2806d4286>>
10+
* @generated SignedSource<<40044f2b73d92b559f25b1f678a2fc3c>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.1.0-native-fb-2d320563-20241215";
206+
exports.version = "19.1.0-native-fb-e06c72fc-20241215";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<88ae68ebcf623ca5914238f2806d4286>>
10+
* @generated SignedSource<<40044f2b73d92b559f25b1f678a2fc3c>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.1.0-native-fb-2d320563-20241215";
206+
exports.version = "19.1.0-native-fb-e06c72fc-20241215";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<b1997b3c7b2a69bcc7e8e5c44927831d>>
10+
* @generated SignedSource<<7631d97db34554856db19e5d2b32fbe2>>
1111
*/
1212

1313
/*
@@ -23758,9 +23758,9 @@ __DEV__ &&
2375823758
useFormState: throwInvalidHookError,
2375923759
useActionState: throwInvalidHookError,
2376023760
useOptimistic: throwInvalidHookError,
23761-
useMemoCache: throwInvalidHookError
23761+
useMemoCache: throwInvalidHookError,
23762+
useCacheRefresh: throwInvalidHookError
2376223763
};
23763-
ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError;
2376423764
enableUseResourceEffectHook &&
2376523765
(ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError);
2376623766
var HooksDispatcherOnMountInDEV = null,
@@ -25891,11 +25891,11 @@ __DEV__ &&
2589125891
};
2589225892
(function () {
2589325893
var isomorphicReactPackageVersion = React.version;
25894-
if ("19.1.0-native-fb-2d320563-20241215" !== isomorphicReactPackageVersion)
25894+
if ("19.1.0-native-fb-e06c72fc-20241215" !== isomorphicReactPackageVersion)
2589525895
throw Error(
2589625896
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2589725897
(isomorphicReactPackageVersion +
25898-
"\n - react-dom: 19.1.0-native-fb-2d320563-20241215\nLearn more: https://react.dev/warnings/version-mismatch")
25898+
"\n - react-dom: 19.1.0-native-fb-e06c72fc-20241215\nLearn more: https://react.dev/warnings/version-mismatch")
2589925899
);
2590025900
})();
2590125901
("function" === typeof Map &&
@@ -25932,10 +25932,10 @@ __DEV__ &&
2593225932
!(function () {
2593325933
var internals = {
2593425934
bundleType: 1,
25935-
version: "19.1.0-native-fb-2d320563-20241215",
25935+
version: "19.1.0-native-fb-e06c72fc-20241215",
2593625936
rendererPackageName: "react-dom",
2593725937
currentDispatcherRef: ReactSharedInternals,
25938-
reconcilerVersion: "19.1.0-native-fb-2d320563-20241215"
25938+
reconcilerVersion: "19.1.0-native-fb-e06c72fc-20241215"
2593925939
};
2594025940
internals.overrideHookState = overrideHookState;
2594125941
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26081,5 +26081,5 @@ __DEV__ &&
2608126081
listenToAllSupportedEvents(container);
2608226082
return new ReactDOMHydrationRoot(initialChildren);
2608326083
};
26084-
exports.version = "19.1.0-native-fb-2d320563-20241215";
26084+
exports.version = "19.1.0-native-fb-e06c72fc-20241215";
2608526085
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<3e25592e8b92af0b4b50eb0a50e87b30>>
10+
* @generated SignedSource<<0bd0131f657cf6165007ce600d7673fb>>
1111
*/
1212

1313
/*
@@ -4295,9 +4295,9 @@ var ContextOnlyDispatcher = {
42954295
useFormState: throwInvalidHookError,
42964296
useActionState: throwInvalidHookError,
42974297
useOptimistic: throwInvalidHookError,
4298-
useMemoCache: throwInvalidHookError
4298+
useMemoCache: throwInvalidHookError,
4299+
useCacheRefresh: throwInvalidHookError
42994300
};
4300-
ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError;
43014301
enableUseResourceEffectHook &&
43024302
(ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError);
43034303
var HooksDispatcherOnMount = {
@@ -4537,9 +4537,9 @@ var HooksDispatcherOnUpdate = {
45374537
var hook = updateWorkInProgressHook();
45384538
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
45394539
},
4540-
useMemoCache: useMemoCache
4540+
useMemoCache: useMemoCache,
4541+
useCacheRefresh: updateRefresh
45414542
};
4542-
HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh;
45434543
enableUseResourceEffectHook &&
45444544
(HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect);
45454545
var HooksDispatcherOnRerender = {
@@ -4591,9 +4591,9 @@ var HooksDispatcherOnRerender = {
45914591
hook.baseState = passthrough;
45924592
return [passthrough, hook.queue.dispatch];
45934593
},
4594-
useMemoCache: useMemoCache
4594+
useMemoCache: useMemoCache,
4595+
useCacheRefresh: updateRefresh
45954596
};
4596-
HooksDispatcherOnRerender.useCacheRefresh = updateRefresh;
45974597
enableUseResourceEffectHook &&
45984598
(HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect);
45994599
var thenableState = null,
@@ -15867,14 +15867,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1586715867
};
1586815868
var isomorphicReactPackageVersion$jscomp$inline_1722 = React.version;
1586915869
if (
15870-
"19.1.0-native-fb-2d320563-20241215" !==
15870+
"19.1.0-native-fb-e06c72fc-20241215" !==
1587115871
isomorphicReactPackageVersion$jscomp$inline_1722
1587215872
)
1587315873
throw Error(
1587415874
formatProdErrorMessage(
1587515875
527,
1587615876
isomorphicReactPackageVersion$jscomp$inline_1722,
15877-
"19.1.0-native-fb-2d320563-20241215"
15877+
"19.1.0-native-fb-e06c72fc-20241215"
1587815878
)
1587915879
);
1588015880
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15896,10 +15896,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1589615896
};
1589715897
var internals$jscomp$inline_2177 = {
1589815898
bundleType: 0,
15899-
version: "19.1.0-native-fb-2d320563-20241215",
15899+
version: "19.1.0-native-fb-e06c72fc-20241215",
1590015900
rendererPackageName: "react-dom",
1590115901
currentDispatcherRef: ReactSharedInternals,
15902-
reconcilerVersion: "19.1.0-native-fb-2d320563-20241215"
15902+
reconcilerVersion: "19.1.0-native-fb-e06c72fc-20241215"
1590315903
};
1590415904
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1590515905
var hook$jscomp$inline_2178 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16005,4 +16005,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1600516005
listenToAllSupportedEvents(container);
1600616006
return new ReactDOMHydrationRoot(initialChildren);
1600716007
};
16008-
exports.version = "19.1.0-native-fb-2d320563-20241215";
16008+
exports.version = "19.1.0-native-fb-e06c72fc-20241215";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<7aab05ec081ebb0275c02a7bbbe43921>>
10+
* @generated SignedSource<<b7bea36bc8991c762b087566dbbd5e81>>
1111
*/
1212

1313
/*
@@ -4447,9 +4447,9 @@ var ContextOnlyDispatcher = {
44474447
useFormState: throwInvalidHookError,
44484448
useActionState: throwInvalidHookError,
44494449
useOptimistic: throwInvalidHookError,
4450-
useMemoCache: throwInvalidHookError
4450+
useMemoCache: throwInvalidHookError,
4451+
useCacheRefresh: throwInvalidHookError
44514452
};
4452-
ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError;
44534453
enableUseResourceEffectHook &&
44544454
(ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError);
44554455
var HooksDispatcherOnMount = {
@@ -4689,9 +4689,9 @@ var HooksDispatcherOnUpdate = {
46894689
var hook = updateWorkInProgressHook();
46904690
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
46914691
},
4692-
useMemoCache: useMemoCache
4692+
useMemoCache: useMemoCache,
4693+
useCacheRefresh: updateRefresh
46934694
};
4694-
HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh;
46954695
enableUseResourceEffectHook &&
46964696
(HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect);
46974697
var HooksDispatcherOnRerender = {
@@ -4743,9 +4743,9 @@ var HooksDispatcherOnRerender = {
47434743
hook.baseState = passthrough;
47444744
return [passthrough, hook.queue.dispatch];
47454745
},
4746-
useMemoCache: useMemoCache
4746+
useMemoCache: useMemoCache,
4747+
useCacheRefresh: updateRefresh
47474748
};
4748-
HooksDispatcherOnRerender.useCacheRefresh = updateRefresh;
47494749
enableUseResourceEffectHook &&
47504750
(HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect);
47514751
var thenableState = null,
@@ -16520,14 +16520,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1652016520
};
1652116521
var isomorphicReactPackageVersion$jscomp$inline_1812 = React.version;
1652216522
if (
16523-
"19.1.0-native-fb-2d320563-20241215" !==
16523+
"19.1.0-native-fb-e06c72fc-20241215" !==
1652416524
isomorphicReactPackageVersion$jscomp$inline_1812
1652516525
)
1652616526
throw Error(
1652716527
formatProdErrorMessage(
1652816528
527,
1652916529
isomorphicReactPackageVersion$jscomp$inline_1812,
16530-
"19.1.0-native-fb-2d320563-20241215"
16530+
"19.1.0-native-fb-e06c72fc-20241215"
1653116531
)
1653216532
);
1653316533
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16549,10 +16549,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1654916549
};
1655016550
var internals$jscomp$inline_1819 = {
1655116551
bundleType: 0,
16552-
version: "19.1.0-native-fb-2d320563-20241215",
16552+
version: "19.1.0-native-fb-e06c72fc-20241215",
1655316553
rendererPackageName: "react-dom",
1655416554
currentDispatcherRef: ReactSharedInternals,
16555-
reconcilerVersion: "19.1.0-native-fb-2d320563-20241215",
16555+
reconcilerVersion: "19.1.0-native-fb-e06c72fc-20241215",
1655616556
getLaneLabelMap: function () {
1655716557
for (
1655816558
var map = new Map(), lane = 1, index$292 = 0;
@@ -16673,4 +16673,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1667316673
listenToAllSupportedEvents(container);
1667416674
return new ReactDOMHydrationRoot(initialChildren);
1667516675
};
16676-
exports.version = "19.1.0-native-fb-2d320563-20241215";
16676+
exports.version = "19.1.0-native-fb-e06c72fc-20241215";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<4a01f0648b3bb0ab796408b5e02b0346>>
10+
* @generated SignedSource<<e5d1903005849c428b135dae1ed10dbf>>
1111
*/
1212

1313
/*
@@ -23819,9 +23819,9 @@ __DEV__ &&
2381923819
useFormState: throwInvalidHookError,
2382023820
useActionState: throwInvalidHookError,
2382123821
useOptimistic: throwInvalidHookError,
23822-
useMemoCache: throwInvalidHookError
23822+
useMemoCache: throwInvalidHookError,
23823+
useCacheRefresh: throwInvalidHookError
2382323824
};
23824-
ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError;
2382523825
enableUseResourceEffectHook &&
2382623826
(ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError);
2382723827
var HooksDispatcherOnMountInDEV = null,
@@ -25952,11 +25952,11 @@ __DEV__ &&
2595225952
};
2595325953
(function () {
2595425954
var isomorphicReactPackageVersion = React.version;
25955-
if ("19.1.0-native-fb-2d320563-20241215" !== isomorphicReactPackageVersion)
25955+
if ("19.1.0-native-fb-e06c72fc-20241215" !== isomorphicReactPackageVersion)
2595625956
throw Error(
2595725957
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2595825958
(isomorphicReactPackageVersion +
25959-
"\n - react-dom: 19.1.0-native-fb-2d320563-20241215\nLearn more: https://react.dev/warnings/version-mismatch")
25959+
"\n - react-dom: 19.1.0-native-fb-e06c72fc-20241215\nLearn more: https://react.dev/warnings/version-mismatch")
2596025960
);
2596125961
})();
2596225962
("function" === typeof Map &&
@@ -25993,10 +25993,10 @@ __DEV__ &&
2599325993
!(function () {
2599425994
var internals = {
2599525995
bundleType: 1,
25996-
version: "19.1.0-native-fb-2d320563-20241215",
25996+
version: "19.1.0-native-fb-e06c72fc-20241215",
2599725997
rendererPackageName: "react-dom",
2599825998
currentDispatcherRef: ReactSharedInternals,
25999-
reconcilerVersion: "19.1.0-native-fb-2d320563-20241215"
25999+
reconcilerVersion: "19.1.0-native-fb-e06c72fc-20241215"
2600026000
};
2600126001
internals.overrideHookState = overrideHookState;
2600226002
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26458,7 +26458,7 @@ __DEV__ &&
2645826458
exports.useFormStatus = function () {
2645926459
return resolveDispatcher().useHostTransitionStatus();
2646026460
};
26461-
exports.version = "19.1.0-native-fb-2d320563-20241215";
26461+
exports.version = "19.1.0-native-fb-e06c72fc-20241215";
2646226462
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2646326463
"function" ===
2646426464
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)