[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 [8cb6a1c034](https://github.com/facebook/react/commit/8cb6a1c0347a69ad4c580c5cf5f28d8be544d6d4)
This commit is contained in:
josephsavona
2024-04-02 18:00:11 +00:00
parent 385c181896
commit 8a319a658f
31 changed files with 49 additions and 261 deletions
+1 -1
View File
@@ -1 +1 @@
48ec17b865f439754fcdaa289ef0aa98f15a05c2
8cb6a1c0347a69ad4c580c5cf5f28d8be544d6d4
+1 -23
View File
@@ -24,7 +24,7 @@ if (__DEV__) {
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = "19.0.0-www-classic-da16f573";
var ReactVersion = "19.0.0-www-classic-c27d3e58";
// ATTENTION
// When adding new symbols to this file,
@@ -2976,27 +2976,6 @@ if (__DEV__) {
return dispatcher;
}
function getCacheSignal() {
var dispatcher = ReactCurrentCache.current;
if (!dispatcher) {
// If we have no cache to associate with this call, then we don't know
// its lifetime. We abort early since that's safer than letting it live
// for ever. Unlike just caching which can be a functional noop outside
// of React, these should generally always be associated with some React
// render but we're not limiting quite as much as making it a Hook.
// It's safer than erroring early at runtime.
var controller = new AbortController();
var reason = new Error(
"This CacheSignal was requested outside React which means that it is " +
"immediately aborted."
);
controller.abort(reason);
return controller.signal;
}
return dispatcher.getCacheSignal();
}
function getCacheForType(resourceType) {
var dispatcher = ReactCurrentCache.current;
@@ -3670,7 +3649,6 @@ if (__DEV__) {
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
exports.unstable_TracingMarker = REACT_TRACING_MARKER_TYPE;
exports.unstable_getCacheForType = getCacheForType;
exports.unstable_getCacheSignal = getCacheSignal;
exports.unstable_useCacheRefresh = useCacheRefresh;
exports.unstable_useMemoCache = useMemoCache;
exports.use = use;
+1 -23
View File
@@ -24,7 +24,7 @@ if (__DEV__) {
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = "19.0.0-www-modern-f04454d4";
var ReactVersion = "19.0.0-www-modern-5ccfe516";
// ATTENTION
// When adding new symbols to this file,
@@ -2976,27 +2976,6 @@ if (__DEV__) {
return dispatcher;
}
function getCacheSignal() {
var dispatcher = ReactCurrentCache.current;
if (!dispatcher) {
// If we have no cache to associate with this call, then we don't know
// its lifetime. We abort early since that's safer than letting it live
// for ever. Unlike just caching which can be a functional noop outside
// of React, these should generally always be associated with some React
// render but we're not limiting quite as much as making it a Hook.
// It's safer than erroring early at runtime.
var controller = new AbortController();
var reason = new Error(
"This CacheSignal was requested outside React which means that it is " +
"immediately aborted."
);
controller.abort(reason);
return controller.signal;
}
return dispatcher.getCacheSignal();
}
function getCacheForType(resourceType) {
var dispatcher = ReactCurrentCache.current;
@@ -3669,7 +3648,6 @@ if (__DEV__) {
exports.unstable_Scope = REACT_SCOPE_TYPE;
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
exports.unstable_getCacheForType = getCacheForType;
exports.unstable_getCacheSignal = getCacheSignal;
exports.unstable_useCacheRefresh = useCacheRefresh;
exports.unstable_useMemoCache = useMemoCache;
exports.use = use;
+1 -13
View File
@@ -576,18 +576,6 @@ exports.unstable_getCacheForType = function (resourceType) {
var dispatcher = ReactCurrentCache.current;
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
};
exports.unstable_getCacheSignal = function () {
var dispatcher = ReactCurrentCache.current;
return dispatcher
? dispatcher.getCacheSignal()
: ((dispatcher = new AbortController()),
dispatcher.abort(
Error(
"This CacheSignal was requested outside React which means that it is immediately aborted."
)
),
dispatcher.signal);
};
exports.unstable_useCacheRefresh = function () {
return ReactCurrentDispatcher.current.useCacheRefresh();
};
@@ -658,4 +646,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "19.0.0-www-classic-6c6f69ff";
exports.version = "19.0.0-www-classic-091663c2";
+1 -13
View File
@@ -574,18 +574,6 @@ exports.unstable_getCacheForType = function (resourceType) {
var dispatcher = ReactCurrentCache.current;
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
};
exports.unstable_getCacheSignal = function () {
var dispatcher = ReactCurrentCache.current;
return dispatcher
? dispatcher.getCacheSignal()
: ((dispatcher = new AbortController()),
dispatcher.abort(
Error(
"This CacheSignal was requested outside React which means that it is immediately aborted."
)
),
dispatcher.signal);
};
exports.unstable_useCacheRefresh = function () {
return ReactCurrentDispatcher.current.useCacheRefresh();
};
@@ -656,4 +644,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "19.0.0-www-modern-763d5ed6";
exports.version = "19.0.0-www-modern-f4b5ac1e";
@@ -580,18 +580,6 @@ exports.unstable_getCacheForType = function (resourceType) {
var dispatcher = ReactCurrentCache.current;
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
};
exports.unstable_getCacheSignal = function () {
var dispatcher = ReactCurrentCache.current;
return dispatcher
? dispatcher.getCacheSignal()
: ((dispatcher = new AbortController()),
dispatcher.abort(
Error(
"This CacheSignal was requested outside React which means that it is immediately aborted."
)
),
dispatcher.signal);
};
exports.unstable_useCacheRefresh = function () {
return ReactCurrentDispatcher.current.useCacheRefresh();
};
@@ -662,7 +650,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "19.0.0-www-classic-1734cffd";
exports.version = "19.0.0-www-classic-1eaf4ddd";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -578,18 +578,6 @@ exports.unstable_getCacheForType = function (resourceType) {
var dispatcher = ReactCurrentCache.current;
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
};
exports.unstable_getCacheSignal = function () {
var dispatcher = ReactCurrentCache.current;
return dispatcher
? dispatcher.getCacheSignal()
: ((dispatcher = new AbortController()),
dispatcher.abort(
Error(
"This CacheSignal was requested outside React which means that it is immediately aborted."
)
),
dispatcher.signal);
};
exports.unstable_useCacheRefresh = function () {
return ReactCurrentDispatcher.current.useCacheRefresh();
};
@@ -660,7 +648,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "19.0.0-www-modern-1bb0db64";
exports.version = "19.0.0-www-modern-2111cb84";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -66,7 +66,7 @@ if (__DEV__) {
return self;
}
var ReactVersion = "19.0.0-www-classic-9edd2970";
var ReactVersion = "19.0.0-www-classic-cbebd2c1";
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -25722,11 +25722,6 @@ if (__DEV__) {
}
}
function getCacheSignal() {
var cache = readContext(CacheContext);
return cache.controller.signal;
}
function getCacheForType(resourceType) {
var cache = readContext(CacheContext);
var cacheForType = cache.data.get(resourceType);
@@ -25740,7 +25735,6 @@ if (__DEV__) {
}
var DefaultCacheDispatcher = {
getCacheSignal: getCacheSignal,
getCacheForType: getCacheForType
};
+1 -7
View File
@@ -66,7 +66,7 @@ if (__DEV__) {
return self;
}
var ReactVersion = "19.0.0-www-modern-5aabb0c4";
var ReactVersion = "19.0.0-www-modern-62398be5";
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -25381,11 +25381,6 @@ if (__DEV__) {
}
}
function getCacheSignal() {
var cache = readContext(CacheContext);
return cache.controller.signal;
}
function getCacheForType(resourceType) {
var cache = readContext(CacheContext);
var cacheForType = cache.data.get(resourceType);
@@ -25399,7 +25394,6 @@ if (__DEV__) {
}
var DefaultCacheDispatcher = {
getCacheSignal: getCacheSignal,
getCacheForType: getCacheForType
};
@@ -8882,9 +8882,6 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
}
}
var DefaultCacheDispatcher = {
getCacheSignal: function () {
return readContext(CacheContext).controller.signal;
},
getCacheForType: function (resourceType) {
var cache = readContext(CacheContext),
cacheForType = cache.data.get(resourceType);
@@ -10600,7 +10597,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-classic-8f84997a",
version: "19.0.0-www-classic-aebe0d0d",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1314 = {
@@ -10631,7 +10628,7 @@ var internals$jscomp$inline_1314 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-8f84997a"
reconcilerVersion: "19.0.0-www-classic-aebe0d0d"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1315 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -8583,9 +8583,6 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
}
}
var DefaultCacheDispatcher = {
getCacheSignal: function () {
return readContext(CacheContext).controller.signal;
},
getCacheForType: function (resourceType) {
var cache = readContext(CacheContext),
cacheForType = cache.data.get(resourceType);
@@ -10257,7 +10254,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-modern-d9e4c872",
version: "19.0.0-www-modern-ee94f26b",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1294 = {
@@ -10288,7 +10285,7 @@ var internals$jscomp$inline_1294 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-d9e4c872"
reconcilerVersion: "19.0.0-www-modern-ee94f26b"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1295 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -31245,11 +31245,6 @@ if (__DEV__) {
}
}
function getCacheSignal() {
var cache = readContext(CacheContext);
return cache.controller.signal;
}
function getCacheForType(resourceType) {
var cache = readContext(CacheContext);
var cacheForType = cache.data.get(resourceType);
@@ -31263,7 +31258,6 @@ if (__DEV__) {
}
var DefaultCacheDispatcher = {
getCacheSignal: getCacheSignal,
getCacheForType: getCacheForType
};
@@ -36279,7 +36273,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-classic-fd4e175d";
var ReactVersion = "19.0.0-www-classic-6e35fd06";
function createPortal$1(
children,
+1 -7
View File
@@ -31102,11 +31102,6 @@ if (__DEV__) {
}
}
function getCacheSignal() {
var cache = readContext(CacheContext);
return cache.controller.signal;
}
function getCacheForType(resourceType) {
var cache = readContext(CacheContext);
var cacheForType = cache.data.get(resourceType);
@@ -31120,7 +31115,6 @@ if (__DEV__) {
}
var DefaultCacheDispatcher = {
getCacheSignal: getCacheSignal,
getCacheForType: getCacheForType
};
@@ -36127,7 +36121,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-modern-0973d70b";
var ReactVersion = "19.0.0-www-modern-e8cb623a";
function createPortal$1(
children,
@@ -10645,9 +10645,6 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
}
}
var DefaultCacheDispatcher = {
getCacheSignal: function () {
return readContext(CacheContext).controller.signal;
},
getCacheForType: function (resourceType) {
var cache = readContext(CacheContext),
cacheForType = cache.data.get(resourceType);
@@ -17070,7 +17067,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1722 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-8eec4eed",
version: "19.0.0-www-classic-74cf60c9",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2150 = {
@@ -17100,7 +17097,7 @@ var internals$jscomp$inline_2150 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-8eec4eed"
reconcilerVersion: "19.0.0-www-classic-74cf60c9"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2151 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17550,4 +17547,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-8eec4eed";
exports.version = "19.0.0-www-classic-74cf60c9";
@@ -10465,9 +10465,6 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
}
}
var DefaultCacheDispatcher = {
getCacheSignal: function () {
return readContext(CacheContext).controller.signal;
},
getCacheForType: function (resourceType) {
var cache = readContext(CacheContext),
cacheForType = cache.data.get(resourceType);
@@ -16586,7 +16583,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1683 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-6b365d04",
version: "19.0.0-www-modern-51569d18",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2112 = {
@@ -16616,7 +16613,7 @@ var internals$jscomp$inline_2112 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-6b365d04"
reconcilerVersion: "19.0.0-www-modern-51569d18"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2113 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16919,4 +16916,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-6b365d04";
exports.version = "19.0.0-www-modern-51569d18";
@@ -11237,9 +11237,6 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
}
}
var DefaultCacheDispatcher = {
getCacheSignal: function () {
return readContext(CacheContext).controller.signal;
},
getCacheForType: function (resourceType) {
var cache = readContext(CacheContext),
cacheForType = cache.data.get(resourceType);
@@ -17820,7 +17817,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1808 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-4051d1c8",
version: "19.0.0-www-classic-c8ce430f",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -17864,7 +17861,7 @@ var devToolsConfig$jscomp$inline_1808 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-4051d1c8"
reconcilerVersion: "19.0.0-www-classic-c8ce430f"
});
var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog");
if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog)
@@ -18301,7 +18298,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-4051d1c8";
exports.version = "19.0.0-www-classic-c8ce430f";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -11051,9 +11051,6 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
}
}
var DefaultCacheDispatcher = {
getCacheSignal: function () {
return readContext(CacheContext).controller.signal;
},
getCacheForType: function (resourceType) {
var cache = readContext(CacheContext),
cacheForType = cache.data.get(resourceType);
@@ -17330,7 +17327,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1769 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-7a481094",
version: "19.0.0-www-modern-95141c03",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -17374,7 +17371,7 @@ var devToolsConfig$jscomp$inline_1769 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-7a481094"
reconcilerVersion: "19.0.0-www-modern-95141c03"
});
var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog");
if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog)
@@ -17664,7 +17661,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-7a481094";
exports.version = "19.0.0-www-modern-95141c03";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -19,7 +19,7 @@ if (__DEV__) {
var React = require("react");
var ReactDOM = require("react-dom");
var ReactVersion = "19.0.0-www-classic-e1b06834";
var ReactVersion = "19.0.0-www-classic-a2ba8df5";
// This refers to a WWW module.
var warningWWW = require("warning");
@@ -10729,16 +10729,11 @@ if (__DEV__) {
currentResumableState = resumableState;
}
function getCacheSignal() {
throw new Error("Not implemented.");
}
function getCacheForType(resourceType) {
throw new Error("Not implemented.");
}
var DefaultCacheDispatcher = {
getCacheSignal: getCacheSignal,
getCacheForType: getCacheForType
};
@@ -19,7 +19,7 @@ if (__DEV__) {
var React = require("react");
var ReactDOM = require("react-dom");
var ReactVersion = "19.0.0-www-modern-07eca2b1";
var ReactVersion = "19.0.0-www-modern-4693f3a0";
// This refers to a WWW module.
var warningWWW = require("warning");
@@ -10650,16 +10650,11 @@ if (__DEV__) {
currentResumableState = resumableState;
}
function getCacheSignal() {
throw new Error("Not implemented.");
}
function getCacheForType(resourceType) {
throw new Error("Not implemented.");
}
var DefaultCacheDispatcher = {
getCacheSignal: getCacheSignal,
getCacheForType: getCacheForType
};
@@ -3300,9 +3300,6 @@ HooksDispatcher.useFormState = useActionState;
HooksDispatcher.useActionState = useActionState;
var currentResumableState = null,
DefaultCacheDispatcher = {
getCacheSignal: function () {
throw Error(formatProdErrorMessage(248));
},
getCacheForType: function () {
throw Error(formatProdErrorMessage(248));
}
@@ -5696,4 +5693,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-classic-a95965e6";
exports.version = "19.0.0-www-classic-d08e9f22";
@@ -3292,9 +3292,6 @@ HooksDispatcher.useFormState = useActionState;
HooksDispatcher.useActionState = useActionState;
var currentResumableState = null,
DefaultCacheDispatcher = {
getCacheSignal: function () {
throw Error(formatProdErrorMessage(248));
},
getCacheForType: function () {
throw Error(formatProdErrorMessage(248));
}
@@ -5637,4 +5634,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-modern-a46dd917";
exports.version = "19.0.0-www-modern-e9074a7c";
@@ -10532,16 +10532,11 @@ if (__DEV__) {
currentResumableState = resumableState;
}
function getCacheSignal() {
throw new Error("Not implemented.");
}
function getCacheForType(resourceType) {
throw new Error("Not implemented.");
}
var DefaultCacheDispatcher = {
getCacheSignal: getCacheSignal,
getCacheForType: getCacheForType
};
@@ -3183,9 +3183,6 @@ HooksDispatcher.useFormState = useActionState;
HooksDispatcher.useActionState = useActionState;
var currentResumableState = null,
DefaultCacheDispatcher = {
getCacheSignal: function () {
throw Error("Not implemented.");
},
getCacheForType: function () {
throw Error("Not implemented.");
}
@@ -31382,11 +31382,6 @@ if (__DEV__) {
}
}
function getCacheSignal() {
var cache = readContext(CacheContext);
return cache.controller.signal;
}
function getCacheForType(resourceType) {
var cache = readContext(CacheContext);
var cacheForType = cache.data.get(resourceType);
@@ -31400,7 +31395,6 @@ if (__DEV__) {
}
var DefaultCacheDispatcher = {
getCacheSignal: getCacheSignal,
getCacheForType: getCacheForType
};
@@ -36903,7 +36897,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-classic-c019344a";
var ReactVersion = "19.0.0-www-classic-b3f8d371";
function createPortal$1(
children,
@@ -31239,11 +31239,6 @@ if (__DEV__) {
}
}
function getCacheSignal() {
var cache = readContext(CacheContext);
return cache.controller.signal;
}
function getCacheForType(resourceType) {
var cache = readContext(CacheContext);
var cacheForType = cache.data.get(resourceType);
@@ -31257,7 +31252,6 @@ if (__DEV__) {
}
var DefaultCacheDispatcher = {
getCacheSignal: getCacheSignal,
getCacheForType: getCacheForType
};
@@ -36751,7 +36745,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-modern-db9e220d";
var ReactVersion = "19.0.0-www-modern-cfc7c1e7";
function createPortal$1(
children,
@@ -10731,9 +10731,6 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
}
}
var DefaultCacheDispatcher = {
getCacheSignal: function () {
return readContext(CacheContext).controller.signal;
},
getCacheForType: function (resourceType) {
var cache = readContext(CacheContext),
cacheForType = cache.data.get(resourceType);
@@ -17399,7 +17396,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1749 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-059aefad",
version: "19.0.0-www-classic-1a554f4a",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2158 = {
@@ -17429,7 +17426,7 @@ var internals$jscomp$inline_2158 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-059aefad"
reconcilerVersion: "19.0.0-www-classic-1a554f4a"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2159 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -18022,4 +18019,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-059aefad";
exports.version = "19.0.0-www-classic-1a554f4a";
@@ -10610,9 +10610,6 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
}
}
var DefaultCacheDispatcher = {
getCacheSignal: function () {
return readContext(CacheContext).controller.signal;
},
getCacheForType: function (resourceType) {
var cache = readContext(CacheContext),
cacheForType = cache.data.get(resourceType);
@@ -16974,7 +16971,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1710 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-b7a4c391",
version: "19.0.0-www-modern-7feddd56",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2116 = {
@@ -17004,7 +17001,7 @@ var internals$jscomp$inline_2116 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-b7a4c391"
reconcilerVersion: "19.0.0-www-modern-7feddd56"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2117 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17430,4 +17427,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-b7a4c391";
exports.version = "19.0.0-www-modern-7feddd56";
@@ -707,10 +707,6 @@ if (__DEV__) {
}
}
function createSignal() {
return new AbortController().signal;
}
function resolveCache() {
var request = resolveRequest();
@@ -722,17 +718,6 @@ if (__DEV__) {
}
var DefaultCacheDispatcher = {
getCacheSignal: function () {
var cache = resolveCache();
var entry = cache.get(createSignal);
if (entry === undefined) {
entry = createSignal();
cache.set(createSignal, entry);
}
return entry;
},
getCacheForType: function (resourceType) {
var cache = resolveCache();
var entry = cache.get(resourceType);
@@ -305,26 +305,17 @@ function use(usable) {
}
throw Error("An unsupported type was passed to use(): " + String(usable));
}
function createSignal() {
return new AbortController().signal;
}
function resolveCache() {
var request = currentRequest ? currentRequest : null;
return request ? request.cache : new Map();
}
var DefaultCacheDispatcher = {
getCacheSignal: function () {
var cache = resolveCache(),
entry = cache.get(createSignal);
void 0 === entry &&
((entry = createSignal()), cache.set(createSignal, entry));
return entry;
},
getCacheForType: function (resourceType) {
var cache = resolveCache(),
entry = cache.get(resourceType);
var JSCompiler_inline_result = (JSCompiler_inline_result = currentRequest
? currentRequest
: null)
? JSCompiler_inline_result.cache
: new Map();
var entry = JSCompiler_inline_result.get(resourceType);
void 0 === entry &&
((entry = resourceType()), cache.set(resourceType, entry));
((entry = resourceType()),
JSCompiler_inline_result.set(resourceType, entry));
return entry;
}
},
@@ -22591,11 +22591,6 @@ if (__DEV__) {
}
}
function getCacheSignal() {
var cache = readContext(CacheContext);
return cache.controller.signal;
}
function getCacheForType(resourceType) {
var cache = readContext(CacheContext);
var cacheForType = cache.data.get(resourceType);
@@ -22609,7 +22604,6 @@ if (__DEV__) {
}
var DefaultCacheDispatcher = {
getCacheSignal: getCacheSignal,
getCacheForType: getCacheForType
};
@@ -26835,7 +26829,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-classic-2ceb9886";
var ReactVersion = "19.0.0-www-classic-2fc232e4";
// Might add PROFILE later.
@@ -22591,11 +22591,6 @@ if (__DEV__) {
}
}
function getCacheSignal() {
var cache = readContext(CacheContext);
return cache.controller.signal;
}
function getCacheForType(resourceType) {
var cache = readContext(CacheContext);
var cacheForType = cache.data.get(resourceType);
@@ -22609,7 +22604,6 @@ if (__DEV__) {
}
var DefaultCacheDispatcher = {
getCacheSignal: getCacheSignal,
getCacheForType: getCacheForType
};
@@ -26835,7 +26829,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "19.0.0-www-modern-2ceb9886";
var ReactVersion = "19.0.0-www-modern-2fc232e4";
// Might add PROFILE later.