From f161343f9b59b729546a95ab6a10c6605580464c Mon Sep 17 00:00:00 2001 From: rickhanlonii Date: Sat, 14 Dec 2024 08:18:28 -0800 Subject: [PATCH] [flags] Cleanup enableUseMemoCacheHook (#31767) Based off https://github.com/facebook/react/pull/31766 This has already landed everywhere. DiffTrain build for [2e25ee373d96a882cee9a1ee3d7fee3f498bde2d](https://github.com/facebook/react/commit/2e25ee373d96a882cee9a1ee3d7fee3f498bde2d) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/REVISION_TRANSFORMS | 2 +- compiled/facebook-www/React-dev.classic.js | 2 +- compiled/facebook-www/React-dev.modern.js | 2 +- compiled/facebook-www/React-prod.classic.js | 2 +- compiled/facebook-www/React-prod.modern.js | 2 +- .../facebook-www/React-profiling.classic.js | 2 +- .../facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 136 +++++++++-------- compiled/facebook-www/ReactART-dev.modern.js | 136 +++++++++-------- .../facebook-www/ReactART-prod.classic.js | 44 +++--- compiled/facebook-www/ReactART-prod.modern.js | 44 +++--- compiled/facebook-www/ReactDOM-dev.classic.js | 140 +++++++++--------- compiled/facebook-www/ReactDOM-dev.modern.js | 140 +++++++++--------- .../facebook-www/ReactDOM-prod.classic.js | 48 +++--- compiled/facebook-www/ReactDOM-prod.modern.js | 48 +++--- .../ReactDOM-profiling.classic.js | 48 +++--- .../facebook-www/ReactDOM-profiling.modern.js | 48 +++--- .../ReactDOMServer-dev.classic.js | 8 +- .../facebook-www/ReactDOMServer-dev.modern.js | 8 +- .../ReactDOMServer-prod.classic.js | 8 +- .../ReactDOMServer-prod.modern.js | 8 +- .../ReactDOMServerStreaming-dev.modern.js | 6 - .../ReactDOMServerStreaming-prod.modern.js | 6 - .../ReactDOMTesting-dev.classic.js | 140 +++++++++--------- .../ReactDOMTesting-dev.modern.js | 140 +++++++++--------- .../ReactDOMTesting-prod.classic.js | 48 +++--- .../ReactDOMTesting-prod.modern.js | 48 +++--- .../ReactReconciler-dev.classic.js | 132 ++++++++--------- .../ReactReconciler-dev.modern.js | 132 ++++++++--------- .../ReactReconciler-prod.classic.js | 88 +++++------ .../ReactReconciler-prod.modern.js | 88 +++++------ .../ReactTestRenderer-dev.classic.js | 94 ++++++------ .../ReactTestRenderer-dev.modern.js | 94 ++++++------ compiled/facebook-www/VERSION_CLASSIC | 2 +- compiled/facebook-www/VERSION_MODERN | 2 +- 36 files changed, 924 insertions(+), 976 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 032a7e75e306a..a8a8bbc3649c0 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -4996a8fa5c5bf9e12e750c46b48f25656fb050cf +2e25ee373d96a882cee9a1ee3d7fee3f498bde2d diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 032a7e75e306a..a8a8bbc3649c0 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -4996a8fa5c5bf9e12e750c46b48f25656fb050cf +2e25ee373d96a882cee9a1ee3d7fee3f498bde2d diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 89aa6129326a7..c5b9317405e56 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -1954,7 +1954,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-www-classic-4996a8fa-20241213"; + exports.version = "19.1.0-www-classic-2e25ee37-20241214"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 31942ca73be65..7dee5b20d3c92 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -1954,7 +1954,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-www-modern-4996a8fa-20241213"; + exports.version = "19.1.0-www-modern-2e25ee37-20241214"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index ec530c652e29e..c3715885c0117 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -635,4 +635,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-classic-4996a8fa-20241213"; +exports.version = "19.1.0-www-classic-2e25ee37-20241214"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index 305681f0630c1..864becdb06896 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -635,4 +635,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-modern-4996a8fa-20241213"; +exports.version = "19.1.0-www-modern-2e25ee37-20241214"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index aab22a4399a06..2a8b609cdbe18 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -639,7 +639,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-classic-4996a8fa-20241213"; +exports.version = "19.1.0-www-classic-2e25ee37-20241214"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index c7f798d0ba196..363aba9521533 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -639,7 +639,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-modern-4996a8fa-20241213"; +exports.version = "19.1.0-www-modern-2e25ee37-20241214"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index e1d06eeb02d87..2720b5fb8e48a 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -3269,6 +3269,9 @@ __DEV__ && } return JSCompiler_temp; } + function createFunctionComponentUpdateQueue() { + return { lastEffect: null, events: null, stores: null, memoCache: null }; + } function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -15270,35 +15273,32 @@ __DEV__ && currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, - ignorePreviousDependencies = !1; - var createFunctionComponentUpdateQueue = function () { - return { lastEffect: null, events: null, stores: null, memoCache: null }; - }; - var ContextOnlyDispatcher = { - readContext: readContext, - use: use, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError, - useHostTransitionStatus: throwInvalidHookError, - useFormState: throwInvalidHookError, - useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError - }; + ignorePreviousDependencies = !1, + ContextOnlyDispatcher = { + readContext: readContext, + use: use, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError + }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; - ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -15431,18 +15431,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + mountHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - mountHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountInDEV.useResourceEffect = function ( create, @@ -15591,20 +15591,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountWithHookTypesInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountWithHookTypesInDEV.useEffectEvent = function ( - callback - ) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountWithHookTypesInDEV.useResourceEffect = function ( create, @@ -15743,18 +15741,18 @@ __DEV__ && return updateOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnUpdateInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnUpdateInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnUpdateInDEV.useResourceEffect = function ( create, @@ -15897,18 +15895,18 @@ __DEV__ && return rerenderOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnRerenderInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnRerenderInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnRerenderInDEV.useResourceEffect = function ( create, @@ -16071,16 +16069,16 @@ __DEV__ && mountHookTypesDev(); return mountOptimistic(passthrough); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -16248,16 +16246,16 @@ __DEV__ && updateHookTypesDev(); return updateOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -16427,16 +16425,16 @@ __DEV__ && updateHookTypesDev(); return rerenderOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -17191,10 +17189,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-4996a8fa-20241213", + version: "19.1.0-www-classic-2e25ee37-20241214", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-classic-2e25ee37-20241214" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -17228,7 +17226,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.1.0-www-classic-4996a8fa-20241213"; + exports.version = "19.1.0-www-classic-2e25ee37-20241214"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index f34cbb98fac65..a49fc705cd5d1 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -3161,6 +3161,9 @@ __DEV__ && } return JSCompiler_temp; } + function createFunctionComponentUpdateQueue() { + return { lastEffect: null, events: null, stores: null, memoCache: null }; + } function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -15023,35 +15026,32 @@ __DEV__ && currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, - ignorePreviousDependencies = !1; - var createFunctionComponentUpdateQueue = function () { - return { lastEffect: null, events: null, stores: null, memoCache: null }; - }; - var ContextOnlyDispatcher = { - readContext: readContext, - use: use, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError, - useHostTransitionStatus: throwInvalidHookError, - useFormState: throwInvalidHookError, - useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError - }; + ignorePreviousDependencies = !1, + ContextOnlyDispatcher = { + readContext: readContext, + use: use, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError + }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; - ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -15184,18 +15184,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + mountHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - mountHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountInDEV.useResourceEffect = function ( create, @@ -15344,20 +15344,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountWithHookTypesInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountWithHookTypesInDEV.useEffectEvent = function ( - callback - ) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountWithHookTypesInDEV.useResourceEffect = function ( create, @@ -15496,18 +15494,18 @@ __DEV__ && return updateOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnUpdateInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnUpdateInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnUpdateInDEV.useResourceEffect = function ( create, @@ -15650,18 +15648,18 @@ __DEV__ && return rerenderOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnRerenderInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnRerenderInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnRerenderInDEV.useResourceEffect = function ( create, @@ -15824,16 +15822,16 @@ __DEV__ && mountHookTypesDev(); return mountOptimistic(passthrough); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -16001,16 +15999,16 @@ __DEV__ && updateHookTypesDev(); return updateOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -16180,16 +16178,16 @@ __DEV__ && updateHookTypesDev(); return rerenderOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -16954,10 +16952,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-4996a8fa-20241213", + version: "19.1.0-www-modern-2e25ee37-20241214", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-modern-2e25ee37-20241214" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16991,7 +16989,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.1.0-www-modern-4996a8fa-20241213"; + exports.version = "19.1.0-www-modern-2e25ee37-20241214"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index 2f8ed02d4ed1f..d93836836cc04 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -1987,10 +1987,9 @@ function unstable_useContextWithBailout(context, select) { } return JSCompiler_temp; } -var createFunctionComponentUpdateQueue; -createFunctionComponentUpdateQueue = function () { +function createFunctionComponentUpdateQueue() { return { lastEffect: null, events: null, stores: null, memoCache: null }; -}; +} function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -2950,10 +2949,10 @@ var ContextOnlyDispatcher = { useHostTransitionStatus: throwInvalidHookError, useFormState: throwInvalidHookError, useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; -ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -3111,23 +3110,24 @@ var HooksDispatcherOnMount = { queue.dispatch = hook; return [passthrough, hook]; }, + useMemoCache: useMemoCache, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, currentlyRenderingFiber$1 )); + }, + useEffectEvent: function (callback) { + var hook = mountWorkInProgressHook(), + ref = { impl: callback }; + hook.memoizedState = ref; + return function () { + if (0 !== (executionContext & 2)) + throw Error(formatProdErrorMessage(440)); + return ref.impl.apply(void 0, arguments); + }; } }; -HooksDispatcherOnMount.useMemoCache = useMemoCache; -HooksDispatcherOnMount.useEffectEvent = function (callback) { - var hook = mountWorkInProgressHook(), - ref = { impl: callback }; - hook.memoizedState = ref; - return function () { - if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440)); - return ref.impl.apply(void 0, arguments); - }; -}; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); HooksDispatcherOnMount.unstable_useContextWithBailout = @@ -3175,10 +3175,10 @@ var HooksDispatcherOnUpdate = { useOptimistic: function (passthrough, reducer) { var hook = updateWorkInProgressHook(); return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; -HooksDispatcherOnUpdate.useMemoCache = useMemoCache; HooksDispatcherOnUpdate.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); @@ -3232,10 +3232,10 @@ var HooksDispatcherOnRerender = { return updateOptimisticImpl(hook, currentHook, passthrough, reducer); hook.baseState = passthrough; return [passthrough, hook.queue.dispatch]; - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; -HooksDispatcherOnRerender.useMemoCache = useMemoCache; HooksDispatcherOnRerender.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); @@ -10825,10 +10825,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1500 = { bundleType: 0, - version: "19.1.0-www-classic-4996a8fa-20241213", + version: "19.1.0-www-classic-2e25ee37-20241214", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-classic-2e25ee37-20241214" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1501 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10854,4 +10854,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.1.0-www-classic-4996a8fa-20241213"; +exports.version = "19.1.0-www-classic-2e25ee37-20241214"; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 2ee1606507f61..f31339384b9a6 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -1834,10 +1834,9 @@ function unstable_useContextWithBailout(context, select) { } return JSCompiler_temp; } -var createFunctionComponentUpdateQueue; -createFunctionComponentUpdateQueue = function () { +function createFunctionComponentUpdateQueue() { return { lastEffect: null, events: null, stores: null, memoCache: null }; -}; +} function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -2797,10 +2796,10 @@ var ContextOnlyDispatcher = { useHostTransitionStatus: throwInvalidHookError, useFormState: throwInvalidHookError, useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; -ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -2958,23 +2957,24 @@ var HooksDispatcherOnMount = { queue.dispatch = hook; return [passthrough, hook]; }, + useMemoCache: useMemoCache, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, currentlyRenderingFiber$1 )); + }, + useEffectEvent: function (callback) { + var hook = mountWorkInProgressHook(), + ref = { impl: callback }; + hook.memoizedState = ref; + return function () { + if (0 !== (executionContext & 2)) + throw Error(formatProdErrorMessage(440)); + return ref.impl.apply(void 0, arguments); + }; } }; -HooksDispatcherOnMount.useMemoCache = useMemoCache; -HooksDispatcherOnMount.useEffectEvent = function (callback) { - var hook = mountWorkInProgressHook(), - ref = { impl: callback }; - hook.memoizedState = ref; - return function () { - if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440)); - return ref.impl.apply(void 0, arguments); - }; -}; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); HooksDispatcherOnMount.unstable_useContextWithBailout = @@ -3022,10 +3022,10 @@ var HooksDispatcherOnUpdate = { useOptimistic: function (passthrough, reducer) { var hook = updateWorkInProgressHook(); return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; -HooksDispatcherOnUpdate.useMemoCache = useMemoCache; HooksDispatcherOnUpdate.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); @@ -3079,10 +3079,10 @@ var HooksDispatcherOnRerender = { return updateOptimisticImpl(hook, currentHook, passthrough, reducer); hook.baseState = passthrough; return [passthrough, hook.queue.dispatch]; - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; -HooksDispatcherOnRerender.useMemoCache = useMemoCache; HooksDispatcherOnRerender.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); @@ -10541,10 +10541,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1479 = { bundleType: 0, - version: "19.1.0-www-modern-4996a8fa-20241213", + version: "19.1.0-www-modern-2e25ee37-20241214", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-modern-2e25ee37-20241214" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1480 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10570,4 +10570,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.1.0-www-modern-4996a8fa-20241213"; +exports.version = "19.1.0-www-modern-2e25ee37-20241214"; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index a4bc43fe9eaf4..484b1a5a862a0 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -5072,6 +5072,9 @@ __DEV__ && } return JSCompiler_temp; } + function createFunctionComponentUpdateQueue() { + return { lastEffect: null, events: null, stores: null, memoCache: null }; + } function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -25082,35 +25085,32 @@ __DEV__ && currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, - ignorePreviousDependencies = !1; - var createFunctionComponentUpdateQueue = function () { - return { lastEffect: null, events: null, stores: null, memoCache: null }; - }; - var ContextOnlyDispatcher = { - readContext: readContext, - use: use, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError, - useHostTransitionStatus: throwInvalidHookError, - useFormState: throwInvalidHookError, - useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError - }; + ignorePreviousDependencies = !1, + ContextOnlyDispatcher = { + readContext: readContext, + use: use, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError + }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; - ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -25251,18 +25251,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + mountHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - mountHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountInDEV.useResourceEffect = function ( create, @@ -25419,20 +25419,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountWithHookTypesInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountWithHookTypesInDEV.useEffectEvent = function ( - callback - ) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountWithHookTypesInDEV.useResourceEffect = function ( create, @@ -25579,18 +25577,18 @@ __DEV__ && return updateOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnUpdateInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnUpdateInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnUpdateInDEV.useResourceEffect = function ( create, @@ -25741,18 +25739,18 @@ __DEV__ && return rerenderOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnRerenderInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnRerenderInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnRerenderInDEV.useResourceEffect = function ( create, @@ -25923,16 +25921,16 @@ __DEV__ && mountHookTypesDev(); return mountOptimistic(passthrough); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -26108,16 +26106,16 @@ __DEV__ && updateHookTypesDev(); return updateOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -26295,16 +26293,16 @@ __DEV__ && updateHookTypesDev(); return rerenderOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -27667,11 +27665,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-4996a8fa-20241213" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-2e25ee37-20241214" !== 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-www-classic-4996a8fa-20241213\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-2e25ee37-20241214\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27714,10 +27712,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-4996a8fa-20241213", + version: "19.1.0-www-classic-2e25ee37-20241214", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-classic-2e25ee37-20241214" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28324,7 +28322,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-4996a8fa-20241213"; + exports.version = "19.1.0-www-classic-2e25ee37-20241214"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 9acaea899a793..925455f3de6bd 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -4959,6 +4959,9 @@ __DEV__ && } return JSCompiler_temp; } + function createFunctionComponentUpdateQueue() { + return { lastEffect: null, events: null, stores: null, memoCache: null }; + } function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -24863,35 +24866,32 @@ __DEV__ && currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, - ignorePreviousDependencies = !1; - var createFunctionComponentUpdateQueue = function () { - return { lastEffect: null, events: null, stores: null, memoCache: null }; - }; - var ContextOnlyDispatcher = { - readContext: readContext, - use: use, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError, - useHostTransitionStatus: throwInvalidHookError, - useFormState: throwInvalidHookError, - useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError - }; + ignorePreviousDependencies = !1, + ContextOnlyDispatcher = { + readContext: readContext, + use: use, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError + }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; - ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -25032,18 +25032,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + mountHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - mountHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountInDEV.useResourceEffect = function ( create, @@ -25200,20 +25200,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountWithHookTypesInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountWithHookTypesInDEV.useEffectEvent = function ( - callback - ) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountWithHookTypesInDEV.useResourceEffect = function ( create, @@ -25360,18 +25358,18 @@ __DEV__ && return updateOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnUpdateInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnUpdateInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnUpdateInDEV.useResourceEffect = function ( create, @@ -25522,18 +25520,18 @@ __DEV__ && return rerenderOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnRerenderInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnRerenderInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnRerenderInDEV.useResourceEffect = function ( create, @@ -25704,16 +25702,16 @@ __DEV__ && mountHookTypesDev(); return mountOptimistic(passthrough); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -25889,16 +25887,16 @@ __DEV__ && updateHookTypesDev(); return updateOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -26076,16 +26074,16 @@ __DEV__ && updateHookTypesDev(); return rerenderOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -27446,11 +27444,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-4996a8fa-20241213" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-2e25ee37-20241214" !== 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-www-modern-4996a8fa-20241213\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-2e25ee37-20241214\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27493,10 +27491,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-4996a8fa-20241213", + version: "19.1.0-www-modern-2e25ee37-20241214", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-modern-2e25ee37-20241214" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28103,7 +28101,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-4996a8fa-20241213"; + exports.version = "19.1.0-www-modern-2e25ee37-20241214"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index bb49012683498..18436eaa67025 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -2789,10 +2789,9 @@ function unstable_useContextWithBailout(context, select) { } return JSCompiler_temp; } -var createFunctionComponentUpdateQueue; -createFunctionComponentUpdateQueue = function () { +function createFunctionComponentUpdateQueue() { return { lastEffect: null, events: null, stores: null, memoCache: null }; -}; +} function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -3866,10 +3865,10 @@ var ContextOnlyDispatcher = { useHostTransitionStatus: throwInvalidHookError, useFormState: throwInvalidHookError, useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; -ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -4057,23 +4056,24 @@ var HooksDispatcherOnMount = { queue.dispatch = hook; return [passthrough, hook]; }, + useMemoCache: useMemoCache, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, currentlyRenderingFiber$1 )); + }, + useEffectEvent: function (callback) { + var hook = mountWorkInProgressHook(), + ref = { impl: callback }; + hook.memoizedState = ref; + return function () { + if (0 !== (executionContext & 2)) + throw Error(formatProdErrorMessage(440)); + return ref.impl.apply(void 0, arguments); + }; } }; -HooksDispatcherOnMount.useMemoCache = useMemoCache; -HooksDispatcherOnMount.useEffectEvent = function (callback) { - var hook = mountWorkInProgressHook(), - ref = { impl: callback }; - hook.memoizedState = ref; - return function () { - if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440)); - return ref.impl.apply(void 0, arguments); - }; -}; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); HooksDispatcherOnMount.unstable_useContextWithBailout = @@ -4121,10 +4121,10 @@ var HooksDispatcherOnUpdate = { useOptimistic: function (passthrough, reducer) { var hook = updateWorkInProgressHook(); return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; -HooksDispatcherOnUpdate.useMemoCache = useMemoCache; HooksDispatcherOnUpdate.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); @@ -4178,10 +4178,10 @@ var HooksDispatcherOnRerender = { return updateOptimisticImpl(hook, currentHook, passthrough, reducer); hook.baseState = passthrough; return [passthrough, hook.queue.dispatch]; - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; -HooksDispatcherOnRerender.useMemoCache = useMemoCache; HooksDispatcherOnRerender.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); @@ -17282,14 +17282,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1765 = React.version; if ( - "19.1.0-www-classic-4996a8fa-20241213" !== + "19.1.0-www-classic-2e25ee37-20241214" !== isomorphicReactPackageVersion$jscomp$inline_1765 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1765, - "19.1.0-www-classic-4996a8fa-20241213" + "19.1.0-www-classic-2e25ee37-20241214" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17307,10 +17307,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2306 = { bundleType: 0, - version: "19.1.0-www-classic-4996a8fa-20241213", + version: "19.1.0-www-classic-2e25ee37-20241214", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-classic-2e25ee37-20241214" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2307 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17675,4 +17675,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-4996a8fa-20241213"; +exports.version = "19.1.0-www-classic-2e25ee37-20241214"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 930472ef8db8a..d369133cd03c4 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -2640,10 +2640,9 @@ function unstable_useContextWithBailout(context, select) { } return JSCompiler_temp; } -var createFunctionComponentUpdateQueue; -createFunctionComponentUpdateQueue = function () { +function createFunctionComponentUpdateQueue() { return { lastEffect: null, events: null, stores: null, memoCache: null }; -}; +} function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -3717,10 +3716,10 @@ var ContextOnlyDispatcher = { useHostTransitionStatus: throwInvalidHookError, useFormState: throwInvalidHookError, useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; -ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -3908,23 +3907,24 @@ var HooksDispatcherOnMount = { queue.dispatch = hook; return [passthrough, hook]; }, + useMemoCache: useMemoCache, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, currentlyRenderingFiber$1 )); + }, + useEffectEvent: function (callback) { + var hook = mountWorkInProgressHook(), + ref = { impl: callback }; + hook.memoizedState = ref; + return function () { + if (0 !== (executionContext & 2)) + throw Error(formatProdErrorMessage(440)); + return ref.impl.apply(void 0, arguments); + }; } }; -HooksDispatcherOnMount.useMemoCache = useMemoCache; -HooksDispatcherOnMount.useEffectEvent = function (callback) { - var hook = mountWorkInProgressHook(), - ref = { impl: callback }; - hook.memoizedState = ref; - return function () { - if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440)); - return ref.impl.apply(void 0, arguments); - }; -}; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); HooksDispatcherOnMount.unstable_useContextWithBailout = @@ -3972,10 +3972,10 @@ var HooksDispatcherOnUpdate = { useOptimistic: function (passthrough, reducer) { var hook = updateWorkInProgressHook(); return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; -HooksDispatcherOnUpdate.useMemoCache = useMemoCache; HooksDispatcherOnUpdate.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); @@ -4029,10 +4029,10 @@ var HooksDispatcherOnRerender = { return updateOptimisticImpl(hook, currentHook, passthrough, reducer); hook.baseState = passthrough; return [passthrough, hook.queue.dispatch]; - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; -HooksDispatcherOnRerender.useMemoCache = useMemoCache; HooksDispatcherOnRerender.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); @@ -17013,14 +17013,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1755 = React.version; if ( - "19.1.0-www-modern-4996a8fa-20241213" !== + "19.1.0-www-modern-2e25ee37-20241214" !== isomorphicReactPackageVersion$jscomp$inline_1755 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1755, - "19.1.0-www-modern-4996a8fa-20241213" + "19.1.0-www-modern-2e25ee37-20241214" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17038,10 +17038,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2288 = { bundleType: 0, - version: "19.1.0-www-modern-4996a8fa-20241213", + version: "19.1.0-www-modern-2e25ee37-20241214", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-modern-2e25ee37-20241214" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2289 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17406,4 +17406,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-4996a8fa-20241213"; +exports.version = "19.1.0-www-modern-2e25ee37-20241214"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 4821d9332cb4d..58c2f5f2f594f 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -2957,10 +2957,9 @@ function unstable_useContextWithBailout(context, select) { } return JSCompiler_temp; } -var createFunctionComponentUpdateQueue; -createFunctionComponentUpdateQueue = function () { +function createFunctionComponentUpdateQueue() { return { lastEffect: null, events: null, stores: null, memoCache: null }; -}; +} function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -4037,10 +4036,10 @@ var ContextOnlyDispatcher = { useHostTransitionStatus: throwInvalidHookError, useFormState: throwInvalidHookError, useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; -ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -4228,23 +4227,24 @@ var HooksDispatcherOnMount = { queue.dispatch = hook; return [passthrough, hook]; }, + useMemoCache: useMemoCache, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, currentlyRenderingFiber$1 )); + }, + useEffectEvent: function (callback) { + var hook = mountWorkInProgressHook(), + ref = { impl: callback }; + hook.memoizedState = ref; + return function () { + if (0 !== (executionContext & 2)) + throw Error(formatProdErrorMessage(440)); + return ref.impl.apply(void 0, arguments); + }; } }; -HooksDispatcherOnMount.useMemoCache = useMemoCache; -HooksDispatcherOnMount.useEffectEvent = function (callback) { - var hook = mountWorkInProgressHook(), - ref = { impl: callback }; - hook.memoizedState = ref; - return function () { - if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440)); - return ref.impl.apply(void 0, arguments); - }; -}; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); HooksDispatcherOnMount.unstable_useContextWithBailout = @@ -4292,10 +4292,10 @@ var HooksDispatcherOnUpdate = { useOptimistic: function (passthrough, reducer) { var hook = updateWorkInProgressHook(); return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; -HooksDispatcherOnUpdate.useMemoCache = useMemoCache; HooksDispatcherOnUpdate.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); @@ -4349,10 +4349,10 @@ var HooksDispatcherOnRerender = { return updateOptimisticImpl(hook, currentHook, passthrough, reducer); hook.baseState = passthrough; return [passthrough, hook.queue.dispatch]; - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; -HooksDispatcherOnRerender.useMemoCache = useMemoCache; HooksDispatcherOnRerender.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); @@ -17971,14 +17971,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1858 = React.version; if ( - "19.1.0-www-classic-4996a8fa-20241213" !== + "19.1.0-www-classic-2e25ee37-20241214" !== isomorphicReactPackageVersion$jscomp$inline_1858 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1858, - "19.1.0-www-classic-4996a8fa-20241213" + "19.1.0-www-classic-2e25ee37-20241214" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17996,10 +17996,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_1860 = { bundleType: 0, - version: "19.1.0-www-classic-4996a8fa-20241213", + version: "19.1.0-www-classic-2e25ee37-20241214", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-classic-2e25ee37-20241214" }; enableSchedulingProfiler && ((internals$jscomp$inline_1860.getLaneLabelMap = getLaneLabelMap), @@ -18367,7 +18367,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-4996a8fa-20241213"; +exports.version = "19.1.0-www-classic-2e25ee37-20241214"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index 92256cb916df6..2309b89dc2693 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -2808,10 +2808,9 @@ function unstable_useContextWithBailout(context, select) { } return JSCompiler_temp; } -var createFunctionComponentUpdateQueue; -createFunctionComponentUpdateQueue = function () { +function createFunctionComponentUpdateQueue() { return { lastEffect: null, events: null, stores: null, memoCache: null }; -}; +} function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -3888,10 +3887,10 @@ var ContextOnlyDispatcher = { useHostTransitionStatus: throwInvalidHookError, useFormState: throwInvalidHookError, useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; -ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -4079,23 +4078,24 @@ var HooksDispatcherOnMount = { queue.dispatch = hook; return [passthrough, hook]; }, + useMemoCache: useMemoCache, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, currentlyRenderingFiber$1 )); + }, + useEffectEvent: function (callback) { + var hook = mountWorkInProgressHook(), + ref = { impl: callback }; + hook.memoizedState = ref; + return function () { + if (0 !== (executionContext & 2)) + throw Error(formatProdErrorMessage(440)); + return ref.impl.apply(void 0, arguments); + }; } }; -HooksDispatcherOnMount.useMemoCache = useMemoCache; -HooksDispatcherOnMount.useEffectEvent = function (callback) { - var hook = mountWorkInProgressHook(), - ref = { impl: callback }; - hook.memoizedState = ref; - return function () { - if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440)); - return ref.impl.apply(void 0, arguments); - }; -}; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); HooksDispatcherOnMount.unstable_useContextWithBailout = @@ -4143,10 +4143,10 @@ var HooksDispatcherOnUpdate = { useOptimistic: function (passthrough, reducer) { var hook = updateWorkInProgressHook(); return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; -HooksDispatcherOnUpdate.useMemoCache = useMemoCache; HooksDispatcherOnUpdate.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); @@ -4200,10 +4200,10 @@ var HooksDispatcherOnRerender = { return updateOptimisticImpl(hook, currentHook, passthrough, reducer); hook.baseState = passthrough; return [passthrough, hook.queue.dispatch]; - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; -HooksDispatcherOnRerender.useMemoCache = useMemoCache; HooksDispatcherOnRerender.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); @@ -17701,14 +17701,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1848 = React.version; if ( - "19.1.0-www-modern-4996a8fa-20241213" !== + "19.1.0-www-modern-2e25ee37-20241214" !== isomorphicReactPackageVersion$jscomp$inline_1848 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1848, - "19.1.0-www-modern-4996a8fa-20241213" + "19.1.0-www-modern-2e25ee37-20241214" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17726,10 +17726,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_1850 = { bundleType: 0, - version: "19.1.0-www-modern-4996a8fa-20241213", + version: "19.1.0-www-modern-2e25ee37-20241214", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-modern-2e25ee37-20241214" }; enableSchedulingProfiler && ((internals$jscomp$inline_1850.getLaneLabelMap = getLaneLabelMap), @@ -18097,7 +18097,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-4996a8fa-20241213"; +exports.version = "19.1.0-www-modern-2e25ee37-20241214"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index 04e4726a64e18..17b52a522c2ed 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -7718,7 +7718,6 @@ __DEV__ && REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, isArrayImpl = Array.isArray, jsxPropsParents = new WeakMap(), @@ -9077,11 +9076,6 @@ __DEV__ && }, useEffectEvent: function () { return throwOnUseEffectEventCall; - }, - useMemoCache: function (size) { - for (var data = Array(size), i = 0; i < size; i++) - data[i] = REACT_MEMO_CACHE_SENTINEL; - return data; } }; enableUseResourceEffectHook && (HooksDispatcher.useResourceEffect = noop$1); @@ -9164,5 +9158,5 @@ __DEV__ && '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.1.0-www-classic-4996a8fa-20241213"; + exports.version = "19.1.0-www-classic-2e25ee37-20241214"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index c728540618fa1..a962dbe48f738 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -7546,7 +7546,6 @@ __DEV__ && REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, isArrayImpl = Array.isArray, jsxPropsParents = new WeakMap(), @@ -8903,11 +8902,6 @@ __DEV__ && }, useEffectEvent: function () { return throwOnUseEffectEventCall; - }, - useMemoCache: function (size) { - for (var data = Array(size), i = 0; i < size; i++) - data[i] = REACT_MEMO_CACHE_SENTINEL; - return data; } }; enableUseResourceEffectHook && (HooksDispatcher.useResourceEffect = noop$1); @@ -8990,5 +8984,5 @@ __DEV__ && '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.1.0-www-modern-4996a8fa-20241213"; + exports.version = "19.1.0-www-modern-2e25ee37-20241214"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 7c25f96091eea..ac91bcc4ae06f 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -82,7 +82,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, isArrayImpl = Array.isArray; function murmurhash3_32_gc(key, seed) { @@ -3354,11 +3353,6 @@ var HooksDispatcher = { }, useEffectEvent: function () { return throwOnUseEffectEventCall; - }, - useMemoCache: function (size) { - for (var data = Array(size), i = 0; i < size; i++) - data[i] = REACT_MEMO_CACHE_SENTINEL; - return data; } }; enableUseResourceEffectHook && (HooksDispatcher.useResourceEffect = noop$1); @@ -5912,4 +5906,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.1.0-www-classic-4996a8fa-20241213"; +exports.version = "19.1.0-www-classic-2e25ee37-20241214"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 9b1183043b0d7..7f78d14c83c52 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -80,7 +80,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, isArrayImpl = Array.isArray; function murmurhash3_32_gc(key, seed) { @@ -3344,11 +3343,6 @@ var HooksDispatcher = { }, useEffectEvent: function () { return throwOnUseEffectEventCall; - }, - useMemoCache: function (size) { - for (var data = Array(size), i = 0; i < size; i++) - data[i] = REACT_MEMO_CACHE_SENTINEL; - return data; } }; enableUseResourceEffectHook && (HooksDispatcher.useResourceEffect = noop$1); @@ -5824,4 +5818,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.1.0-www-modern-4996a8fa-20241213"; +exports.version = "19.1.0-www-modern-2e25ee37-20241214"; diff --git a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js index edc8ce5172bd2..da22fda2c6923 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js @@ -6949,7 +6949,6 @@ __DEV__ && REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, isArrayImpl = Array.isArray, jsxPropsParents = new WeakMap(), @@ -8211,11 +8210,6 @@ __DEV__ && }, useEffectEvent: function () { return throwOnUseEffectEventCall; - }, - useMemoCache: function (size) { - for (var data = Array(size), i = 0; i < size; i++) - data[i] = REACT_MEMO_CACHE_SENTINEL; - return data; } }; enableUseResourceEffectHook && (HooksDispatcher.useResourceEffect = noop$1); diff --git a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js index a2fc6b41d7c9e..54e627b9af261 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js @@ -65,7 +65,6 @@ var React = require("react"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, isArrayImpl = Array.isArray; function murmurhash3_32_gc(key, seed) { @@ -3231,11 +3230,6 @@ var HooksDispatcher = { }, useEffectEvent: function () { return throwOnUseEffectEventCall; - }, - useMemoCache: function (size) { - for (var data = Array(size), i = 0; i < size; i++) - data[i] = REACT_MEMO_CACHE_SENTINEL; - return data; } }; enableUseResourceEffectHook && (HooksDispatcher.useResourceEffect = noop$1); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 31e1cde43a594..dda4485c4e1a8 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -5113,6 +5113,9 @@ __DEV__ && } return JSCompiler_temp; } + function createFunctionComponentUpdateQueue() { + return { lastEffect: null, events: null, stores: null, memoCache: null }; + } function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -25411,35 +25414,32 @@ __DEV__ && currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, - ignorePreviousDependencies = !1; - var createFunctionComponentUpdateQueue = function () { - return { lastEffect: null, events: null, stores: null, memoCache: null }; - }; - var ContextOnlyDispatcher = { - readContext: readContext, - use: use, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError, - useHostTransitionStatus: throwInvalidHookError, - useFormState: throwInvalidHookError, - useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError - }; + ignorePreviousDependencies = !1, + ContextOnlyDispatcher = { + readContext: readContext, + use: use, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError + }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; - ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -25580,18 +25580,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + mountHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - mountHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountInDEV.useResourceEffect = function ( create, @@ -25748,20 +25748,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountWithHookTypesInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountWithHookTypesInDEV.useEffectEvent = function ( - callback - ) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountWithHookTypesInDEV.useResourceEffect = function ( create, @@ -25908,18 +25906,18 @@ __DEV__ && return updateOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnUpdateInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnUpdateInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnUpdateInDEV.useResourceEffect = function ( create, @@ -26070,18 +26068,18 @@ __DEV__ && return rerenderOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnRerenderInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnRerenderInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnRerenderInDEV.useResourceEffect = function ( create, @@ -26252,16 +26250,16 @@ __DEV__ && mountHookTypesDev(); return mountOptimistic(passthrough); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -26437,16 +26435,16 @@ __DEV__ && updateHookTypesDev(); return updateOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -26624,16 +26622,16 @@ __DEV__ && updateHookTypesDev(); return rerenderOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -28001,11 +27999,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-4996a8fa-20241213" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-2e25ee37-20241214" !== 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-www-classic-4996a8fa-20241213\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-2e25ee37-20241214\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -28048,10 +28046,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-4996a8fa-20241213", + version: "19.1.0-www-classic-2e25ee37-20241214", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-classic-2e25ee37-20241214" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28824,5 +28822,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-4996a8fa-20241213"; + exports.version = "19.1.0-www-classic-2e25ee37-20241214"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 7655ee0067177..d211204c63ee5 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -5000,6 +5000,9 @@ __DEV__ && } return JSCompiler_temp; } + function createFunctionComponentUpdateQueue() { + return { lastEffect: null, events: null, stores: null, memoCache: null }; + } function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -25192,35 +25195,32 @@ __DEV__ && currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, - ignorePreviousDependencies = !1; - var createFunctionComponentUpdateQueue = function () { - return { lastEffect: null, events: null, stores: null, memoCache: null }; - }; - var ContextOnlyDispatcher = { - readContext: readContext, - use: use, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError, - useHostTransitionStatus: throwInvalidHookError, - useFormState: throwInvalidHookError, - useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError - }; + ignorePreviousDependencies = !1, + ContextOnlyDispatcher = { + readContext: readContext, + use: use, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError + }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; - ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -25361,18 +25361,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + mountHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - mountHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountInDEV.useResourceEffect = function ( create, @@ -25529,20 +25529,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountWithHookTypesInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountWithHookTypesInDEV.useEffectEvent = function ( - callback - ) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountWithHookTypesInDEV.useResourceEffect = function ( create, @@ -25689,18 +25687,18 @@ __DEV__ && return updateOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnUpdateInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnUpdateInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnUpdateInDEV.useResourceEffect = function ( create, @@ -25851,18 +25849,18 @@ __DEV__ && return rerenderOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnRerenderInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnRerenderInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnRerenderInDEV.useResourceEffect = function ( create, @@ -26033,16 +26031,16 @@ __DEV__ && mountHookTypesDev(); return mountOptimistic(passthrough); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -26218,16 +26216,16 @@ __DEV__ && updateHookTypesDev(); return updateOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -26405,16 +26403,16 @@ __DEV__ && updateHookTypesDev(); return rerenderOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -27780,11 +27778,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-4996a8fa-20241213" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-2e25ee37-20241214" !== 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-www-modern-4996a8fa-20241213\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-2e25ee37-20241214\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27827,10 +27825,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-4996a8fa-20241213", + version: "19.1.0-www-modern-2e25ee37-20241214", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-modern-2e25ee37-20241214" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28603,5 +28601,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-4996a8fa-20241213"; + exports.version = "19.1.0-www-modern-2e25ee37-20241214"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 4c9332c2201a5..48d69c18b4bd7 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -2875,10 +2875,9 @@ function unstable_useContextWithBailout(context, select) { } return JSCompiler_temp; } -var createFunctionComponentUpdateQueue; -createFunctionComponentUpdateQueue = function () { +function createFunctionComponentUpdateQueue() { return { lastEffect: null, events: null, stores: null, memoCache: null }; -}; +} function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -3952,10 +3951,10 @@ var ContextOnlyDispatcher = { useHostTransitionStatus: throwInvalidHookError, useFormState: throwInvalidHookError, useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; -ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -4143,23 +4142,24 @@ var HooksDispatcherOnMount = { queue.dispatch = hook; return [passthrough, hook]; }, + useMemoCache: useMemoCache, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, currentlyRenderingFiber$1 )); + }, + useEffectEvent: function (callback) { + var hook = mountWorkInProgressHook(), + ref = { impl: callback }; + hook.memoizedState = ref; + return function () { + if (0 !== (executionContext & 2)) + throw Error(formatProdErrorMessage(440)); + return ref.impl.apply(void 0, arguments); + }; } }; -HooksDispatcherOnMount.useMemoCache = useMemoCache; -HooksDispatcherOnMount.useEffectEvent = function (callback) { - var hook = mountWorkInProgressHook(), - ref = { impl: callback }; - hook.memoizedState = ref; - return function () { - if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440)); - return ref.impl.apply(void 0, arguments); - }; -}; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); HooksDispatcherOnMount.unstable_useContextWithBailout = @@ -4207,10 +4207,10 @@ var HooksDispatcherOnUpdate = { useOptimistic: function (passthrough, reducer) { var hook = updateWorkInProgressHook(); return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; -HooksDispatcherOnUpdate.useMemoCache = useMemoCache; HooksDispatcherOnUpdate.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); @@ -4264,10 +4264,10 @@ var HooksDispatcherOnRerender = { return updateOptimisticImpl(hook, currentHook, passthrough, reducer); hook.baseState = passthrough; return [passthrough, hook.queue.dispatch]; - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; -HooksDispatcherOnRerender.useMemoCache = useMemoCache; HooksDispatcherOnRerender.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); @@ -17611,14 +17611,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1794 = React.version; if ( - "19.1.0-www-classic-4996a8fa-20241213" !== + "19.1.0-www-classic-2e25ee37-20241214" !== isomorphicReactPackageVersion$jscomp$inline_1794 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1794, - "19.1.0-www-classic-4996a8fa-20241213" + "19.1.0-www-classic-2e25ee37-20241214" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17636,10 +17636,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2340 = { bundleType: 0, - version: "19.1.0-www-classic-4996a8fa-20241213", + version: "19.1.0-www-classic-2e25ee37-20241214", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-classic-2e25ee37-20241214" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2341 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -18155,4 +18155,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-4996a8fa-20241213"; +exports.version = "19.1.0-www-classic-2e25ee37-20241214"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 592b25d8d84a3..e65a9c7e1fe27 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -2726,10 +2726,9 @@ function unstable_useContextWithBailout(context, select) { } return JSCompiler_temp; } -var createFunctionComponentUpdateQueue; -createFunctionComponentUpdateQueue = function () { +function createFunctionComponentUpdateQueue() { return { lastEffect: null, events: null, stores: null, memoCache: null }; -}; +} function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -3803,10 +3802,10 @@ var ContextOnlyDispatcher = { useHostTransitionStatus: throwInvalidHookError, useFormState: throwInvalidHookError, useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; -ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -3994,23 +3993,24 @@ var HooksDispatcherOnMount = { queue.dispatch = hook; return [passthrough, hook]; }, + useMemoCache: useMemoCache, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, currentlyRenderingFiber$1 )); + }, + useEffectEvent: function (callback) { + var hook = mountWorkInProgressHook(), + ref = { impl: callback }; + hook.memoizedState = ref; + return function () { + if (0 !== (executionContext & 2)) + throw Error(formatProdErrorMessage(440)); + return ref.impl.apply(void 0, arguments); + }; } }; -HooksDispatcherOnMount.useMemoCache = useMemoCache; -HooksDispatcherOnMount.useEffectEvent = function (callback) { - var hook = mountWorkInProgressHook(), - ref = { impl: callback }; - hook.memoizedState = ref; - return function () { - if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440)); - return ref.impl.apply(void 0, arguments); - }; -}; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); HooksDispatcherOnMount.unstable_useContextWithBailout = @@ -4058,10 +4058,10 @@ var HooksDispatcherOnUpdate = { useOptimistic: function (passthrough, reducer) { var hook = updateWorkInProgressHook(); return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; -HooksDispatcherOnUpdate.useMemoCache = useMemoCache; HooksDispatcherOnUpdate.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); @@ -4115,10 +4115,10 @@ var HooksDispatcherOnRerender = { return updateOptimisticImpl(hook, currentHook, passthrough, reducer); hook.baseState = passthrough; return [passthrough, hook.queue.dispatch]; - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; -HooksDispatcherOnRerender.useMemoCache = useMemoCache; HooksDispatcherOnRerender.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); @@ -17342,14 +17342,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1784 = React.version; if ( - "19.1.0-www-modern-4996a8fa-20241213" !== + "19.1.0-www-modern-2e25ee37-20241214" !== isomorphicReactPackageVersion$jscomp$inline_1784 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1784, - "19.1.0-www-modern-4996a8fa-20241213" + "19.1.0-www-modern-2e25ee37-20241214" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17367,10 +17367,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2322 = { bundleType: 0, - version: "19.1.0-www-modern-4996a8fa-20241213", + version: "19.1.0-www-modern-2e25ee37-20241214", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-modern-2e25ee37-20241214" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2323 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17886,4 +17886,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-4996a8fa-20241213"; +exports.version = "19.1.0-www-modern-2e25ee37-20241214"; diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index 9eba1f81b7d51..8ac6047c61ff0 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -3445,6 +3445,9 @@ __DEV__ && } return JSCompiler_temp; } + function createFunctionComponentUpdateQueue() { + return { lastEffect: null, events: null, stores: null, memoCache: null }; + } function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -17025,35 +17028,32 @@ __DEV__ && currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, - ignorePreviousDependencies = !1; - var createFunctionComponentUpdateQueue = function () { - return { lastEffect: null, events: null, stores: null, memoCache: null }; - }; - var ContextOnlyDispatcher = { - readContext: readContext, - use: use, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError, - useHostTransitionStatus: throwInvalidHookError, - useFormState: throwInvalidHookError, - useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError - }; + ignorePreviousDependencies = !1, + ContextOnlyDispatcher = { + readContext: readContext, + use: use, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError + }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; - ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -17194,18 +17194,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + mountHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - mountHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountInDEV.useResourceEffect = function ( create, @@ -17362,20 +17362,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountWithHookTypesInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountWithHookTypesInDEV.useEffectEvent = function ( - callback - ) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountWithHookTypesInDEV.useResourceEffect = function ( create, @@ -17522,18 +17520,18 @@ __DEV__ && return updateOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnUpdateInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnUpdateInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnUpdateInDEV.useResourceEffect = function ( create, @@ -17684,18 +17682,18 @@ __DEV__ && return rerenderOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnRerenderInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnRerenderInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnRerenderInDEV.useResourceEffect = function ( create, @@ -17866,16 +17864,16 @@ __DEV__ && mountHookTypesDev(); return mountOptimistic(passthrough); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -18051,16 +18049,16 @@ __DEV__ && updateHookTypesDev(); return updateOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -18238,16 +18236,16 @@ __DEV__ && updateHookTypesDev(); return rerenderOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -19355,7 +19353,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-classic-2e25ee37-20241214" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index b43b4a977791c..5b5faba231ecd 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -3351,6 +3351,9 @@ __DEV__ && } return JSCompiler_temp; } + function createFunctionComponentUpdateQueue() { + return { lastEffect: null, events: null, stores: null, memoCache: null }; + } function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -16800,35 +16803,32 @@ __DEV__ && currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, - ignorePreviousDependencies = !1; - var createFunctionComponentUpdateQueue = function () { - return { lastEffect: null, events: null, stores: null, memoCache: null }; - }; - var ContextOnlyDispatcher = { - readContext: readContext, - use: use, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError, - useHostTransitionStatus: throwInvalidHookError, - useFormState: throwInvalidHookError, - useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError - }; + ignorePreviousDependencies = !1, + ContextOnlyDispatcher = { + readContext: readContext, + use: use, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError + }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; - ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -16969,18 +16969,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + mountHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - mountHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountInDEV.useResourceEffect = function ( create, @@ -17137,20 +17137,18 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return mountRefresh(); + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return mountEvent(callback); } }; - HooksDispatcherOnMountWithHookTypesInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnMountWithHookTypesInDEV.useEffectEvent = function ( - callback - ) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return mountEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnMountWithHookTypesInDEV.useResourceEffect = function ( create, @@ -17297,18 +17295,18 @@ __DEV__ && return updateOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnUpdateInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnUpdateInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnUpdateInDEV.useResourceEffect = function ( create, @@ -17459,18 +17457,18 @@ __DEV__ && return rerenderOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; + }, + useEffectEvent: function (callback) { + currentHookNameInDev = "useEffectEvent"; + updateHookTypesDev(); + return updateEvent(callback); } }; - HooksDispatcherOnRerenderInDEV.useMemoCache = useMemoCache; - HooksDispatcherOnRerenderInDEV.useEffectEvent = function (callback) { - currentHookNameInDev = "useEffectEvent"; - updateHookTypesDev(); - return updateEvent(callback); - }; enableUseResourceEffectHook && (HooksDispatcherOnRerenderInDEV.useResourceEffect = function ( create, @@ -17641,16 +17639,16 @@ __DEV__ && mountHookTypesDev(); return mountOptimistic(passthrough); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -17826,16 +17824,16 @@ __DEV__ && updateHookTypesDev(); return updateOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -18013,16 +18011,16 @@ __DEV__ && updateHookTypesDev(); return rerenderOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); - }, useEffectEvent: function (callback) { currentHookNameInDev = "useEffectEvent"; warnInvalidHookAccess(); @@ -19129,7 +19127,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-modern-2e25ee37-20241214" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index ffe705304d0a6..46b7cd5186d0f 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -1938,6 +1938,9 @@ module.exports = function ($$$config) { } return JSCompiler_temp; } + function createFunctionComponentUpdateQueue() { + return { lastEffect: null, events: null, stores: null, memoCache: null }; + } function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -11951,35 +11954,32 @@ module.exports = function ($$$config) { localIdCounter = 0, thenableIndexCounter$1 = 0, thenableState$1 = null, - globalClientIdCounter = 0; - var createFunctionComponentUpdateQueue = function () { - return { lastEffect: null, events: null, stores: null, memoCache: null }; - }; - var ContextOnlyDispatcher = { - readContext: readContext, - use: use, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError, - useHostTransitionStatus: throwInvalidHookError, - useFormState: throwInvalidHookError, - useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError - }; + globalClientIdCounter = 0, + ContextOnlyDispatcher = { + readContext: readContext, + use: use, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError + }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; - ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -12172,24 +12172,24 @@ module.exports = function ($$$config) { queue.dispatch = hook; return [passthrough, hook]; }, + useMemoCache: useMemoCache, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, currentlyRenderingFiber$1 )); + }, + useEffectEvent: function (callback) { + var hook = mountWorkInProgressHook(), + ref = { impl: callback }; + hook.memoizedState = ref; + return function () { + if (0 !== (executionContext & 2)) + throw Error(formatProdErrorMessage(440)); + return ref.impl.apply(void 0, arguments); + }; } }; - HooksDispatcherOnMount.useMemoCache = useMemoCache; - HooksDispatcherOnMount.useEffectEvent = function (callback) { - var hook = mountWorkInProgressHook(), - ref = { impl: callback }; - hook.memoizedState = ref; - return function () { - if (0 !== (executionContext & 2)) - throw Error(formatProdErrorMessage(440)); - return ref.impl.apply(void 0, arguments); - }; - }; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); HooksDispatcherOnMount.unstable_useContextWithBailout = @@ -12237,10 +12237,10 @@ module.exports = function ($$$config) { useOptimistic: function (passthrough, reducer) { var hook = updateWorkInProgressHook(); return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; - HooksDispatcherOnUpdate.useMemoCache = useMemoCache; HooksDispatcherOnUpdate.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); @@ -12294,10 +12294,10 @@ module.exports = function ($$$config) { return updateOptimisticImpl(hook, currentHook, passthrough, reducer); hook.baseState = passthrough; return [passthrough, hook.queue.dispatch]; - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; - HooksDispatcherOnRerender.useMemoCache = useMemoCache; HooksDispatcherOnRerender.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); @@ -12855,7 +12855,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-classic-2e25ee37-20241214" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index e92b19f9825ed..07c1622d3a185 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -1804,6 +1804,9 @@ module.exports = function ($$$config) { } return JSCompiler_temp; } + function createFunctionComponentUpdateQueue() { + return { lastEffect: null, events: null, stores: null, memoCache: null }; + } function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -11670,35 +11673,32 @@ module.exports = function ($$$config) { localIdCounter = 0, thenableIndexCounter$1 = 0, thenableState$1 = null, - globalClientIdCounter = 0; - var createFunctionComponentUpdateQueue = function () { - return { lastEffect: null, events: null, stores: null, memoCache: null }; - }; - var ContextOnlyDispatcher = { - readContext: readContext, - use: use, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError, - useHostTransitionStatus: throwInvalidHookError, - useFormState: throwInvalidHookError, - useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError - }; + globalClientIdCounter = 0, + ContextOnlyDispatcher = { + readContext: readContext, + use: use, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError + }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; - ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); @@ -11891,24 +11891,24 @@ module.exports = function ($$$config) { queue.dispatch = hook; return [passthrough, hook]; }, + useMemoCache: useMemoCache, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, currentlyRenderingFiber$1 )); + }, + useEffectEvent: function (callback) { + var hook = mountWorkInProgressHook(), + ref = { impl: callback }; + hook.memoizedState = ref; + return function () { + if (0 !== (executionContext & 2)) + throw Error(formatProdErrorMessage(440)); + return ref.impl.apply(void 0, arguments); + }; } }; - HooksDispatcherOnMount.useMemoCache = useMemoCache; - HooksDispatcherOnMount.useEffectEvent = function (callback) { - var hook = mountWorkInProgressHook(), - ref = { impl: callback }; - hook.memoizedState = ref; - return function () { - if (0 !== (executionContext & 2)) - throw Error(formatProdErrorMessage(440)); - return ref.impl.apply(void 0, arguments); - }; - }; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); HooksDispatcherOnMount.unstable_useContextWithBailout = @@ -11956,10 +11956,10 @@ module.exports = function ($$$config) { useOptimistic: function (passthrough, reducer) { var hook = updateWorkInProgressHook(); return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; - HooksDispatcherOnUpdate.useMemoCache = useMemoCache; HooksDispatcherOnUpdate.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); @@ -12013,10 +12013,10 @@ module.exports = function ($$$config) { return updateOptimisticImpl(hook, currentHook, passthrough, reducer); hook.baseState = passthrough; return [passthrough, hook.queue.dispatch]; - } + }, + useMemoCache: useMemoCache }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; - HooksDispatcherOnRerender.useMemoCache = useMemoCache; HooksDispatcherOnRerender.useEffectEvent = updateEvent; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); @@ -12574,7 +12574,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-modern-2e25ee37-20241214" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index d357eabe467b8..8e4d4e710baeb 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -2850,6 +2850,9 @@ __DEV__ && } return workInProgressHook; } + function createFunctionComponentUpdateQueue() { + return { lastEffect: null, events: null, stores: null, memoCache: null }; + } function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -13382,35 +13385,32 @@ __DEV__ && currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, - ignorePreviousDependencies = !1; - var createFunctionComponentUpdateQueue = function () { - return { lastEffect: null, events: null, stores: null, memoCache: null }; - }; - var ContextOnlyDispatcher = { - readContext: readContext, - use: use, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError, - useHostTransitionStatus: throwInvalidHookError, - useFormState: throwInvalidHookError, - useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError - }; + ignorePreviousDependencies = !1, + ContextOnlyDispatcher = { + readContext: readContext, + use: use, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError + }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; - ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; var HooksDispatcherOnMountInDEV = null, HooksDispatcherOnMountWithHookTypesInDEV = null, HooksDispatcherOnUpdateInDEV = null, @@ -13538,13 +13538,13 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); } }; - HooksDispatcherOnMountInDEV.useMemoCache = useMemoCache; HooksDispatcherOnMountWithHookTypesInDEV = { readContext: function (context) { return readContext(context); @@ -13659,13 +13659,13 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return mountRefresh(); } }; - HooksDispatcherOnMountWithHookTypesInDEV.useMemoCache = useMemoCache; HooksDispatcherOnUpdateInDEV = { readContext: function (context) { return readContext(context); @@ -13780,13 +13780,13 @@ __DEV__ && return updateOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; } }; - HooksDispatcherOnUpdateInDEV.useMemoCache = useMemoCache; HooksDispatcherOnRerenderInDEV = { readContext: function (context) { return readContext(context); @@ -13901,13 +13901,13 @@ __DEV__ && return rerenderOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; } }; - HooksDispatcherOnRerenderInDEV.useMemoCache = useMemoCache; InvalidNestedHooksDispatcherOnMountInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -14042,15 +14042,15 @@ __DEV__ && mountHookTypesDev(); return mountOptimistic(passthrough); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); - }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); } }; InvalidNestedHooksDispatcherOnUpdateInDEV = { @@ -14187,15 +14187,15 @@ __DEV__ && updateHookTypesDev(); return updateOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; - }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); } }; InvalidNestedHooksDispatcherOnRerenderInDEV = { @@ -14332,15 +14332,15 @@ __DEV__ && updateHookTypesDev(); return rerenderOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; - }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); } }; var callComponent = { @@ -15004,10 +15004,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-4996a8fa-20241213", + version: "19.1.0-www-classic-2e25ee37-20241214", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-classic-2e25ee37-20241214" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15142,5 +15142,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.1.0-www-classic-4996a8fa-20241213"; + exports.version = "19.1.0-www-classic-2e25ee37-20241214"; })(); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 2c9b72dbfaf57..afc7ff5839c03 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -2850,6 +2850,9 @@ __DEV__ && } return workInProgressHook; } + function createFunctionComponentUpdateQueue() { + return { lastEffect: null, events: null, stores: null, memoCache: null }; + } function useThenable(thenable) { var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; @@ -13382,35 +13385,32 @@ __DEV__ && currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, - ignorePreviousDependencies = !1; - var createFunctionComponentUpdateQueue = function () { - return { lastEffect: null, events: null, stores: null, memoCache: null }; - }; - var ContextOnlyDispatcher = { - readContext: readContext, - use: use, - useCallback: throwInvalidHookError, - useContext: throwInvalidHookError, - useEffect: throwInvalidHookError, - useImperativeHandle: throwInvalidHookError, - useLayoutEffect: throwInvalidHookError, - useInsertionEffect: throwInvalidHookError, - useMemo: throwInvalidHookError, - useReducer: throwInvalidHookError, - useRef: throwInvalidHookError, - useState: throwInvalidHookError, - useDebugValue: throwInvalidHookError, - useDeferredValue: throwInvalidHookError, - useTransition: throwInvalidHookError, - useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError, - useHostTransitionStatus: throwInvalidHookError, - useFormState: throwInvalidHookError, - useActionState: throwInvalidHookError, - useOptimistic: throwInvalidHookError - }; + ignorePreviousDependencies = !1, + ContextOnlyDispatcher = { + readContext: readContext, + use: use, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError, + useMemoCache: throwInvalidHookError + }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; - ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; var HooksDispatcherOnMountInDEV = null, HooksDispatcherOnMountWithHookTypesInDEV = null, HooksDispatcherOnUpdateInDEV = null, @@ -13538,13 +13538,13 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); } }; - HooksDispatcherOnMountInDEV.useMemoCache = useMemoCache; HooksDispatcherOnMountWithHookTypesInDEV = { readContext: function (context) { return readContext(context); @@ -13659,13 +13659,13 @@ __DEV__ && return mountOptimistic(passthrough); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return mountRefresh(); } }; - HooksDispatcherOnMountWithHookTypesInDEV.useMemoCache = useMemoCache; HooksDispatcherOnUpdateInDEV = { readContext: function (context) { return readContext(context); @@ -13780,13 +13780,13 @@ __DEV__ && return updateOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; } }; - HooksDispatcherOnUpdateInDEV.useMemoCache = useMemoCache; HooksDispatcherOnRerenderInDEV = { readContext: function (context) { return readContext(context); @@ -13901,13 +13901,13 @@ __DEV__ && return rerenderOptimistic(passthrough, reducer); }, useHostTransitionStatus: useHostTransitionStatus, + useMemoCache: useMemoCache, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; } }; - HooksDispatcherOnRerenderInDEV.useMemoCache = useMemoCache; InvalidNestedHooksDispatcherOnMountInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -14042,15 +14042,15 @@ __DEV__ && mountHookTypesDev(); return mountOptimistic(passthrough); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); return mountRefresh(); - }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); } }; InvalidNestedHooksDispatcherOnUpdateInDEV = { @@ -14187,15 +14187,15 @@ __DEV__ && updateHookTypesDev(); return updateOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; - }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); } }; InvalidNestedHooksDispatcherOnRerenderInDEV = { @@ -14332,15 +14332,15 @@ __DEV__ && updateHookTypesDev(); return rerenderOptimistic(passthrough, reducer); }, + useMemoCache: function (size) { + warnInvalidHookAccess(); + return useMemoCache(size); + }, useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; - }, - useMemoCache: function (size) { - warnInvalidHookAccess(); - return useMemoCache(size); } }; var callComponent = { @@ -15004,10 +15004,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-4996a8fa-20241213", + version: "19.1.0-www-modern-2e25ee37-20241214", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-4996a8fa-20241213" + reconcilerVersion: "19.1.0-www-modern-2e25ee37-20241214" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15142,5 +15142,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.1.0-www-modern-4996a8fa-20241213"; + exports.version = "19.1.0-www-modern-2e25ee37-20241214"; })(); diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index ab6c1a00fce19..380af48ce7620 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.1.0-www-classic-4996a8fa-20241213 \ No newline at end of file +19.1.0-www-classic-2e25ee37-20241214 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index d760e355731b9..436bb4aab5bb4 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.1.0-www-modern-4996a8fa-20241213 \ No newline at end of file +19.1.0-www-modern-2e25ee37-20241214 \ No newline at end of file