Skip to content

Commit 94f98fd

Browse files
committed
[be] Remove unused, experimental getCacheSignal API (#28706)
Similar to #28698, this removes the `unstable_getCacheSignal()` API since we don't intend to ship this to stable. DiffTrain build for commit 8cb6a1c.
1 parent cc4e126 commit 94f98fd

File tree

13 files changed

+31
-113
lines changed

13 files changed

+31
-113
lines changed

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js

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

1313
"use strict";
@@ -22505,11 +22505,6 @@ if (__DEV__) {
2250522505
}
2250622506
}
2250722507

22508-
function getCacheSignal() {
22509-
var cache = readContext(CacheContext);
22510-
return cache.controller.signal;
22511-
}
22512-
2251322508
function getCacheForType(resourceType) {
2251422509
var cache = readContext(CacheContext);
2251522510
var cacheForType = cache.data.get(resourceType);
@@ -22523,7 +22518,6 @@ if (__DEV__) {
2252322518
}
2252422519

2252522520
var DefaultCacheDispatcher = {
22526-
getCacheSignal: getCacheSignal,
2252722521
getCacheForType: getCacheForType
2252822522
};
2252922523

@@ -26809,7 +26803,7 @@ if (__DEV__) {
2680926803
return root;
2681026804
}
2681126805

26812-
var ReactVersion = "19.0.0-canary-4a355ff9";
26806+
var ReactVersion = "19.0.0-canary-b7882942";
2681326807

2681426808
// Might add PROFILE later.
2681526809

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js

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

1313
"use strict";
@@ -7405,9 +7405,6 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
74057405
}
74067406
}
74077407
var DefaultCacheDispatcher = {
7408-
getCacheSignal: function () {
7409-
return readContext(CacheContext).controller.signal;
7410-
},
74117408
getCacheForType: function (resourceType) {
74127409
var cache = readContext(CacheContext),
74137410
cacheForType = cache.data.get(resourceType);
@@ -9201,7 +9198,7 @@ var devToolsConfig$jscomp$inline_992 = {
92019198
throw Error("TestRenderer does not support findFiberByHostInstance()");
92029199
},
92039200
bundleType: 0,
9204-
version: "19.0.0-canary-b78d8890",
9201+
version: "19.0.0-canary-88ad4c2a",
92059202
rendererPackageName: "react-test-renderer"
92069203
};
92079204
var internals$jscomp$inline_1180 = {
@@ -9232,7 +9229,7 @@ var internals$jscomp$inline_1180 = {
92329229
scheduleRoot: null,
92339230
setRefreshHandler: null,
92349231
getCurrentFiber: null,
9235-
reconcilerVersion: "19.0.0-canary-b78d8890"
9232+
reconcilerVersion: "19.0.0-canary-88ad4c2a"
92369233
};
92379234
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
92389235
var hook$jscomp$inline_1181 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js

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

1313
"use strict";
@@ -7877,9 +7877,6 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
78777877
}
78787878
}
78797879
var DefaultCacheDispatcher = {
7880-
getCacheSignal: function () {
7881-
return readContext(CacheContext).controller.signal;
7882-
},
78837880
getCacheForType: function (resourceType) {
78847881
var cache = readContext(CacheContext),
78857882
cacheForType = cache.data.get(resourceType);
@@ -9819,7 +9816,7 @@ var devToolsConfig$jscomp$inline_1076 = {
98199816
throw Error("TestRenderer does not support findFiberByHostInstance()");
98209817
},
98219818
bundleType: 0,
9822-
version: "19.0.0-canary-4e13c867",
9819+
version: "19.0.0-canary-153a5857",
98239820
rendererPackageName: "react-test-renderer"
98249821
};
98259822
(function (internals) {
@@ -9863,7 +9860,7 @@ var devToolsConfig$jscomp$inline_1076 = {
98639860
scheduleRoot: null,
98649861
setRefreshHandler: null,
98659862
getCurrentFiber: null,
9866-
reconcilerVersion: "19.0.0-canary-4e13c867"
9863+
reconcilerVersion: "19.0.0-canary-153a5857"
98679864
});
98689865
exports._Scheduler = Scheduler;
98699866
exports.act = act;

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

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

1313
"use strict";
@@ -26,7 +26,7 @@ if (__DEV__) {
2626
}
2727
var dynamicFlagsUntyped = require("ReactNativeInternalFeatureFlags");
2828

29-
var ReactVersion = "19.0.0-canary-c952bafb";
29+
var ReactVersion = "19.0.0-canary-45dc54bd";
3030

3131
// ATTENTION
3232
// When adding new symbols to this file,
@@ -2944,27 +2944,6 @@ if (__DEV__) {
29442944
return dispatcher;
29452945
}
29462946

2947-
function getCacheSignal() {
2948-
var dispatcher = ReactCurrentCache.current;
2949-
2950-
if (!dispatcher) {
2951-
// If we have no cache to associate with this call, then we don't know
2952-
// its lifetime. We abort early since that's safer than letting it live
2953-
// for ever. Unlike just caching which can be a functional noop outside
2954-
// of React, these should generally always be associated with some React
2955-
// render but we're not limiting quite as much as making it a Hook.
2956-
// It's safer than erroring early at runtime.
2957-
var controller = new AbortController();
2958-
var reason = new Error(
2959-
"This CacheSignal was requested outside React which means that it is " +
2960-
"immediately aborted."
2961-
);
2962-
controller.abort(reason);
2963-
return controller.signal;
2964-
}
2965-
2966-
return dispatcher.getCacheSignal();
2967-
}
29682947
function getCacheForType(resourceType) {
29692948
var dispatcher = ReactCurrentCache.current;
29702949

@@ -3640,7 +3619,6 @@ if (__DEV__) {
36403619
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
36413620
exports.unstable_TracingMarker = REACT_TRACING_MARKER_TYPE;
36423621
exports.unstable_getCacheForType = getCacheForType;
3643-
exports.unstable_getCacheSignal = getCacheSignal;
36443622
exports.unstable_useCacheRefresh = useCacheRefresh;
36453623
exports.unstable_useMemoCache = useMemoCache;
36463624
exports.use = use;

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

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

1313
"use strict";
@@ -571,18 +571,6 @@ exports.unstable_getCacheForType = function (resourceType) {
571571
var dispatcher = ReactCurrentCache.current;
572572
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
573573
};
574-
exports.unstable_getCacheSignal = function () {
575-
var dispatcher = ReactCurrentCache.current;
576-
return dispatcher
577-
? dispatcher.getCacheSignal()
578-
: ((dispatcher = new AbortController()),
579-
dispatcher.abort(
580-
Error(
581-
"This CacheSignal was requested outside React which means that it is immediately aborted."
582-
)
583-
),
584-
dispatcher.signal);
585-
};
586574
exports.unstable_useCacheRefresh = function () {
587575
return ReactCurrentDispatcher.current.useCacheRefresh();
588576
};
@@ -655,4 +643,4 @@ exports.useSyncExternalStore = function (
655643
exports.useTransition = function () {
656644
return ReactCurrentDispatcher.current.useTransition();
657645
};
658-
exports.version = "19.0.0-canary-6446e904";
646+
exports.version = "19.0.0-canary-d7125c20";

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

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

1313
"use strict";
@@ -573,18 +573,6 @@ exports.unstable_getCacheForType = function (resourceType) {
573573
var dispatcher = ReactCurrentCache.current;
574574
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
575575
};
576-
exports.unstable_getCacheSignal = function () {
577-
var dispatcher = ReactCurrentCache.current;
578-
return dispatcher
579-
? dispatcher.getCacheSignal()
580-
: ((dispatcher = new AbortController()),
581-
dispatcher.abort(
582-
Error(
583-
"This CacheSignal was requested outside React which means that it is immediately aborted."
584-
)
585-
),
586-
dispatcher.signal);
587-
};
588576
exports.unstable_useCacheRefresh = function () {
589577
return ReactCurrentDispatcher.current.useCacheRefresh();
590578
};
@@ -657,7 +645,7 @@ exports.useSyncExternalStore = function (
657645
exports.useTransition = function () {
658646
return ReactCurrentDispatcher.current.useTransition();
659647
};
660-
exports.version = "19.0.0-canary-2f767b28";
648+
exports.version = "19.0.0-canary-e9e47b60";
661649
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
662650
"function" ===
663651
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7319c61b18274ee7e7c20bd2e533b93c922d8fe0
1+
8cb6a1c0347a69ad4c580c5cf5f28d8be544d6d4

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js

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

1313
"use strict";
@@ -26043,11 +26043,6 @@ to return true:wantsResponderID| |
2604326043
}
2604426044
}
2604526045

26046-
function getCacheSignal() {
26047-
var cache = readContext(CacheContext);
26048-
return cache.controller.signal;
26049-
}
26050-
2605126046
function getCacheForType(resourceType) {
2605226047
var cache = readContext(CacheContext);
2605326048
var cacheForType = cache.data.get(resourceType);
@@ -26061,7 +26056,6 @@ to return true:wantsResponderID| |
2606126056
}
2606226057

2606326058
var DefaultCacheDispatcher = {
26064-
getCacheSignal: getCacheSignal,
2606526059
getCacheForType: getCacheForType
2606626060
};
2606726061

@@ -30579,7 +30573,7 @@ to return true:wantsResponderID| |
3057930573
return root;
3058030574
}
3058130575

30582-
var ReactVersion = "19.0.0-canary-187f2f09";
30576+
var ReactVersion = "19.0.0-canary-0f204b29";
3058330577

3058430578
function createPortal$1(
3058530579
children,

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js

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

1313
"use strict";
@@ -8954,9 +8954,6 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
89548954
}
89558955
}
89568956
var DefaultCacheDispatcher = {
8957-
getCacheSignal: function () {
8958-
return readContext(CacheContext).controller.signal;
8959-
},
89608957
getCacheForType: function (resourceType) {
89618958
var cache = readContext(CacheContext),
89628959
cacheForType = cache.data.get(resourceType);
@@ -10620,7 +10617,7 @@ var roots = new Map(),
1062010617
devToolsConfig$jscomp$inline_1094 = {
1062110618
findFiberByHostInstance: getInstanceFromNode,
1062210619
bundleType: 0,
10623-
version: "19.0.0-canary-e039c15e",
10620+
version: "19.0.0-canary-62b40297",
1062410621
rendererPackageName: "react-native-renderer",
1062510622
rendererConfig: {
1062610623
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -10663,7 +10660,7 @@ var internals$jscomp$inline_1331 = {
1066310660
scheduleRoot: null,
1066410661
setRefreshHandler: null,
1066510662
getCurrentFiber: null,
10666-
reconcilerVersion: "19.0.0-canary-e039c15e"
10663+
reconcilerVersion: "19.0.0-canary-62b40297"
1066710664
};
1066810665
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1066910666
var hook$jscomp$inline_1332 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js

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

1313
"use strict";
@@ -9483,9 +9483,6 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
94839483
}
94849484
}
94859485
var DefaultCacheDispatcher = {
9486-
getCacheSignal: function () {
9487-
return readContext(CacheContext).controller.signal;
9488-
},
94899486
getCacheForType: function (resourceType) {
94909487
var cache = readContext(CacheContext),
94919488
cacheForType = cache.data.get(resourceType);
@@ -11327,7 +11324,7 @@ var roots = new Map(),
1132711324
devToolsConfig$jscomp$inline_1176 = {
1132811325
findFiberByHostInstance: getInstanceFromNode,
1132911326
bundleType: 0,
11330-
version: "19.0.0-canary-56dfcbcb",
11327+
version: "19.0.0-canary-f31d9db0",
1133111328
rendererPackageName: "react-native-renderer",
1133211329
rendererConfig: {
1133311330
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -11383,7 +11380,7 @@ var roots = new Map(),
1138311380
scheduleRoot: null,
1138411381
setRefreshHandler: null,
1138511382
getCurrentFiber: null,
11386-
reconcilerVersion: "19.0.0-canary-56dfcbcb"
11383+
reconcilerVersion: "19.0.0-canary-f31d9db0"
1138711384
});
1138811385
exports.createPortal = function (children, containerTag) {
1138911386
return createPortal$1(

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js

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

1313
"use strict";
@@ -26481,11 +26481,6 @@ to return true:wantsResponderID| |
2648126481
}
2648226482
}
2648326483

26484-
function getCacheSignal() {
26485-
var cache = readContext(CacheContext);
26486-
return cache.controller.signal;
26487-
}
26488-
2648926484
function getCacheForType(resourceType) {
2649026485
var cache = readContext(CacheContext);
2649126486
var cacheForType = cache.data.get(resourceType);
@@ -26499,7 +26494,6 @@ to return true:wantsResponderID| |
2649926494
}
2650026495

2650126496
var DefaultCacheDispatcher = {
26502-
getCacheSignal: getCacheSignal,
2650326497
getCacheForType: getCacheForType
2650426498
};
2650526499

@@ -31019,7 +31013,7 @@ to return true:wantsResponderID| |
3101931013
return root;
3102031014
}
3102131015

31022-
var ReactVersion = "19.0.0-canary-e3c7b66e";
31016+
var ReactVersion = "19.0.0-canary-753ddd75";
3102331017

3102431018
function createPortal$1(
3102531019
children,

0 commit comments

Comments
 (0)