@@ -536,23 +536,40 @@ __DEV__ &&
536536 }
537537 function lazyInitializer ( payload ) {
538538 if ( - 1 === payload . _status ) {
539+ var resolveDebugValue = null ,
540+ rejectDebugValue = null ;
539541 if ( enableAsyncDebugInfo ) {
540542 var ioInfo = payload . _ioInfo ;
541- null != ioInfo && ( ioInfo . start = ioInfo . end = performance . now ( ) ) ;
543+ null != ioInfo &&
544+ ( ( ioInfo . start = ioInfo . end = performance . now ( ) ) ,
545+ ( ioInfo . value = new Promise ( function ( resolve , reject ) {
546+ resolveDebugValue = resolve ;
547+ rejectDebugValue = reject ;
548+ } ) ) ) ;
542549 }
543550 ioInfo = payload . _result ;
544551 var thenable = ioInfo ( ) ;
545552 thenable . then (
546553 function ( moduleObject ) {
547- if ( 0 === payload . _status || - 1 === payload . _status ) {
548- payload . _status = 1 ;
549- payload . _result = moduleObject ;
550- var _ioInfo = payload . _ioInfo ;
551- null != _ioInfo && ( _ioInfo . end = performance . now ( ) ) ;
552- void 0 === thenable . status &&
553- ( ( thenable . status = "fulfilled" ) ,
554- ( thenable . value = moduleObject ) ) ;
555- }
554+ if ( 0 === payload . _status || - 1 === payload . _status )
555+ if (
556+ ( ( payload . _status = 1 ) ,
557+ ( payload . _result = moduleObject ) ,
558+ enableAsyncDebugInfo )
559+ ) {
560+ var _ioInfo = payload . _ioInfo ;
561+ if ( null != _ioInfo ) {
562+ _ioInfo . end = performance . now ( ) ;
563+ var debugValue =
564+ null == moduleObject ? void 0 : moduleObject . default ;
565+ resolveDebugValue ( debugValue ) ;
566+ _ioInfo . value . status = "fulfilled" ;
567+ _ioInfo . value . value = debugValue ;
568+ }
569+ void 0 === thenable . status &&
570+ ( ( thenable . status = "fulfilled" ) ,
571+ ( thenable . value = moduleObject ) ) ;
572+ }
556573 } ,
557574 function ( error ) {
558575 if ( 0 === payload . _status || - 1 === payload . _status )
@@ -562,7 +579,12 @@ __DEV__ &&
562579 enableAsyncDebugInfo )
563580 ) {
564581 var _ioInfo2 = payload . _ioInfo ;
565- null != _ioInfo2 && ( _ioInfo2 . end = performance . now ( ) ) ;
582+ null != _ioInfo2 &&
583+ ( ( _ioInfo2 . end = performance . now ( ) ) ,
584+ _ioInfo2 . value . then ( noop , noop ) ,
585+ rejectDebugValue ( error ) ,
586+ ( _ioInfo2 . value . status = "rejected" ) ,
587+ ( _ioInfo2 . value . reason = error ) ) ;
566588 void 0 === thenable . status &&
567589 ( ( thenable . status = "rejected" ) , ( thenable . reason = error ) ) ;
568590 }
@@ -572,7 +594,6 @@ __DEV__ &&
572594 enableAsyncDebugInfo &&
573595 ( ( ioInfo = payload . _ioInfo ) , null != ioInfo )
574596 ) {
575- ioInfo . value = thenable ;
576597 var displayName = thenable . displayName ;
577598 "string" === typeof displayName && ( ioInfo . name = displayName ) ;
578599 }
@@ -1478,7 +1499,7 @@ __DEV__ &&
14781499 exports . useTransition = function ( ) {
14791500 return resolveDispatcher ( ) . useTransition ( ) ;
14801501 } ;
1481- exports . version = "19.3.0-www-classic-c35f6a30-20251017 " ;
1502+ exports . version = "19.3.0-www-classic-ec7d9a72-20251019 " ;
14821503 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14831504 "function" ===
14841505 typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ . registerInternalModuleStop &&
0 commit comments