@@ -293,37 +293,17 @@ function createCacheRoot() {
293293function createCacheNode ( ) {
294294 return { s : 0 , v : void 0 , o : null , p : null } ;
295295}
296- var ReactCurrentDispatcher = { current : null } ;
297- function useTransition ( ) {
298- return ReactCurrentDispatcher . current . useTransition ( ) ;
299- }
300- function useDeferredValue ( value ) {
301- return ReactCurrentDispatcher . current . useDeferredValue ( value ) ;
302- }
303- var ReactCurrentBatchConfig = { transition : null } ,
296+ var ReactCurrentDispatcher = { current : null } ,
297+ ReactCurrentBatchConfig = { transition : null } ,
304298 ReactSharedInternals = {
305299 ReactCurrentDispatcher : ReactCurrentDispatcher ,
306300 ReactCurrentCache : ReactCurrentCache ,
307301 ReactCurrentBatchConfig : ReactCurrentBatchConfig ,
308302 ReactCurrentOwner : ReactCurrentOwner$1 ,
309303 ContextRegistry : { }
310304 } ,
311- ContextRegistry = ReactSharedInternals . ContextRegistry ;
312- function startTransition ( scope , options ) {
313- var prevTransition = ReactCurrentBatchConfig . transition ;
314- ReactCurrentBatchConfig . transition = { } ;
315- enableTransitionTracing &&
316- void 0 !== options &&
317- void 0 !== options . name &&
318- ( ( ReactCurrentBatchConfig . transition . name = options . name ) ,
319- ( ReactCurrentBatchConfig . transition . startTime = - 1 ) ) ;
320- try {
321- scope ( ) ;
322- } finally {
323- ReactCurrentBatchConfig . transition = prevTransition ;
324- }
325- }
326- var ReactCurrentOwner = ReactSharedInternals . ReactCurrentOwner ,
305+ ContextRegistry = ReactSharedInternals . ContextRegistry ,
306+ ReactCurrentOwner = ReactSharedInternals . ReactCurrentOwner ,
327307 RESERVED_PROPS = { key : ! 0 , ref : ! 0 , __self : ! 0 , __source : ! 0 } ;
328308function jsx$1 ( type , config , maybeKey ) {
329309 var propName ,
@@ -555,7 +535,20 @@ exports.memo = function (type, compare) {
555535 compare : void 0 === compare ? null : compare
556536 } ;
557537} ;
558- exports . startTransition = startTransition ;
538+ exports . startTransition = function ( scope , options ) {
539+ var prevTransition = ReactCurrentBatchConfig . transition ;
540+ ReactCurrentBatchConfig . transition = { } ;
541+ enableTransitionTracing &&
542+ void 0 !== options &&
543+ void 0 !== options . name &&
544+ ( ( ReactCurrentBatchConfig . transition . name = options . name ) ,
545+ ( ReactCurrentBatchConfig . transition . startTime = - 1 ) ) ;
546+ try {
547+ scope ( ) ;
548+ } finally {
549+ ReactCurrentBatchConfig . transition = prevTransition ;
550+ }
551+ } ;
559552exports . unstable_Cache = REACT_CACHE_TYPE ;
560553exports . unstable_DebugTracingMode = REACT_DEBUG_TRACING_MODE_TYPE ;
561554exports . unstable_LegacyHidden = REACT_LEGACY_HIDDEN_TYPE ;
@@ -582,15 +575,12 @@ exports.unstable_getCacheSignal = function () {
582575 ) ,
583576 dispatcher . signal ) ;
584577} ;
585- exports . unstable_startTransition = startTransition ;
586578exports . unstable_useCacheRefresh = function ( ) {
587579 return ReactCurrentDispatcher . current . useCacheRefresh ( ) ;
588580} ;
589- exports . unstable_useDeferredValue = useDeferredValue ;
590581exports . unstable_useMemoCache = function ( size ) {
591582 return ReactCurrentDispatcher . current . useMemoCache ( size ) ;
592583} ;
593- exports . unstable_useTransition = useTransition ;
594584exports . use = function ( usable ) {
595585 return ReactCurrentDispatcher . current . use ( usable ) ;
596586} ;
@@ -601,7 +591,9 @@ exports.useContext = function (Context) {
601591 return ReactCurrentDispatcher . current . useContext ( Context ) ;
602592} ;
603593exports . useDebugValue = function ( ) { } ;
604- exports . useDeferredValue = useDeferredValue ;
594+ exports . useDeferredValue = function ( value ) {
595+ return ReactCurrentDispatcher . current . useDeferredValue ( value ) ;
596+ } ;
605597exports . useEffect = function ( create , deps ) {
606598 return ReactCurrentDispatcher . current . useEffect ( create , deps ) ;
607599} ;
@@ -640,8 +632,10 @@ exports.useSyncExternalStore = function (
640632 getServerSnapshot
641633 ) ;
642634} ;
643- exports . useTransition = useTransition ;
644- exports . version = "18.3.0-www-classic-5a120705" ;
635+ exports . useTransition = function ( ) {
636+ return ReactCurrentDispatcher . current . useTransition ( ) ;
637+ } ;
638+ exports . version = "18.3.0-www-classic-e0d9c072" ;
645639
646640 /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
647641if (
0 commit comments