@@ -24,7 +24,7 @@ if (__DEV__) {
2424 ) {
2525 __REACT_DEVTOOLS_GLOBAL_HOOK__ . registerInternalModuleStart ( new Error ( ) ) ;
2626 }
27- var ReactVersion = "18.3.0-www-classic-87aadbfe " ;
27+ var ReactVersion = "18.3.0-www-classic-8ed7454f " ;
2828
2929 // ATTENTION
3030 // When adding new symbols to this file,
@@ -3061,26 +3061,25 @@ if (__DEV__) {
30613061 return elementType ;
30623062 }
30633063
3064- function cache ( fn ) {
3065- {
3066- // On the client (i.e. not a Server Components environment) `cache` has
3067- // no caching behavior. We just return the function as-is.
3068- //
3069- // We intend to implement client caching in a future major release. In the
3070- // meantime, it's only exposed as an API so that Shared Components can use
3071- // per-request caching on the server without breaking on the client. But it
3072- // does mean they need to be aware of the behavioral difference.
3073- //
3074- // The rest of the behavior is the same as the server implementation — it
3075- // returns a new reference, extra properties like `displayName` are not
3076- // preserved, the length of the new function is 0, etc. That way apps can't
3077- // accidentally depend on those details.
3078- return function ( ) {
3079- // $FlowFixMe[incompatible-call]: We don't want to use rest arguments since we transpile the code.
3080- return fn . apply ( null , arguments ) ;
3081- } ;
3082- }
3064+ function noopCache ( fn ) {
3065+ // On the client (i.e. not a Server Components environment) `cache` has
3066+ // no caching behavior. We just return the function as-is.
3067+ //
3068+ // We intend to implement client caching in a future major release. In the
3069+ // meantime, it's only exposed as an API so that Shared Components can use
3070+ // per-request caching on the server without breaking on the client. But it
3071+ // does mean they need to be aware of the behavioral difference.
3072+ //
3073+ // The rest of the behavior is the same as the server implementation — it
3074+ // returns a new reference, extra properties like `displayName` are not
3075+ // preserved, the length of the new function is 0, etc. That way apps can't
3076+ // accidentally depend on those details.
3077+ return function ( ) {
3078+ // $FlowFixMe[incompatible-call]: We don't want to use rest arguments since we transpile the code.
3079+ return fn . apply ( null , arguments ) ;
3080+ } ;
30833081 }
3082+ var cache = noopCache ;
30843083
30853084 function resolveDispatcher ( ) {
30863085 var dispatcher = ReactCurrentDispatcher$1 . current ;
0 commit comments