@@ -1728,27 +1728,27 @@ function startTransition(setPending, callback) {
17281728 }
17291729}
17301730
1731- function mountTransition ( ) : [ ( ( ) => void ) => void , boolean ] {
1731+ function mountTransition ( ) : [ boolean , ( ( ) => void ) => void ] {
17321732 const [ isPending , setPending ] = mountState ( false ) ;
17331733 // The `start` method never changes.
17341734 const start = startTransition . bind ( null , setPending ) ;
17351735 const hook = mountWorkInProgressHook ( ) ;
17361736 hook . memoizedState = start ;
1737- return [ start , isPending ] ;
1737+ return [ isPending , start ] ;
17381738}
17391739
1740- function updateTransition ( ) : [ ( ( ) => void ) => void , boolean ] {
1740+ function updateTransition ( ) : [ boolean , ( ( ) => void ) => void ] {
17411741 const [ isPending ] = updateState ( false ) ;
17421742 const hook = updateWorkInProgressHook ( ) ;
17431743 const start = hook . memoizedState ;
1744- return [ start , isPending ] ;
1744+ return [ isPending , start ] ;
17451745}
17461746
1747- function rerenderTransition ( ) : [ ( ( ) => void ) => void , boolean ] {
1747+ function rerenderTransition ( ) : [ boolean , ( ( ) => void ) => void ] {
17481748 const [ isPending ] = rerenderState ( false ) ;
17491749 const hook = updateWorkInProgressHook ( ) ;
17501750 const start = hook . memoizedState ;
1751- return [ start , isPending ] ;
1751+ return [ isPending , start ] ;
17521752}
17531753
17541754let isUpdatingOpaqueValueInRenderPhase = false ;
@@ -2294,7 +2294,7 @@ if (__DEV__) {
22942294 mountHookTypesDev ( ) ;
22952295 return mountDeferredValue ( value ) ;
22962296 } ,
2297- useTransition(): [(() => void ) => void , boolean ] {
2297+ useTransition(): [boolean, (() => void ) => void ] {
22982298 currentHookNameInDev = 'useTransition' ;
22992299 mountHookTypesDev ( ) ;
23002300 return mountTransition ( ) ;
@@ -2424,7 +2424,7 @@ if (__DEV__) {
24242424 updateHookTypesDev ( ) ;
24252425 return mountDeferredValue ( value ) ;
24262426 } ,
2427- useTransition(): [(() => void ) => void , boolean ] {
2427+ useTransition(): [boolean, (() => void ) => void ] {
24282428 currentHookNameInDev = 'useTransition' ;
24292429 updateHookTypesDev ( ) ;
24302430 return mountTransition ( ) ;
@@ -2554,7 +2554,7 @@ if (__DEV__) {
25542554 updateHookTypesDev ( ) ;
25552555 return updateDeferredValue ( value ) ;
25562556 } ,
2557- useTransition(): [(() => void ) => void , boolean ] {
2557+ useTransition(): [boolean, (() => void ) => void ] {
25582558 currentHookNameInDev = 'useTransition' ;
25592559 updateHookTypesDev ( ) ;
25602560 return updateTransition ( ) ;
@@ -2685,7 +2685,7 @@ if (__DEV__) {
26852685 updateHookTypesDev ( ) ;
26862686 return rerenderDeferredValue ( value ) ;
26872687 } ,
2688- useTransition(): [(() => void ) => void , boolean ] {
2688+ useTransition(): [boolean, (() => void ) => void ] {
26892689 currentHookNameInDev = 'useTransition' ;
26902690 updateHookTypesDev ( ) ;
26912691 return rerenderTransition ( ) ;
@@ -2827,7 +2827,7 @@ if (__DEV__) {
28272827 mountHookTypesDev ( ) ;
28282828 return mountDeferredValue ( value ) ;
28292829 } ,
2830- useTransition(): [(() => void ) => void , boolean ] {
2830+ useTransition(): [boolean, (() => void ) => void ] {
28312831 currentHookNameInDev = 'useTransition' ;
28322832 warnInvalidHookAccess ( ) ;
28332833 mountHookTypesDev ( ) ;
@@ -2972,7 +2972,7 @@ if (__DEV__) {
29722972 updateHookTypesDev ( ) ;
29732973 return updateDeferredValue ( value ) ;
29742974 } ,
2975- useTransition(): [(() => void ) => void , boolean ] {
2975+ useTransition(): [boolean, (() => void ) => void ] {
29762976 currentHookNameInDev = 'useTransition' ;
29772977 warnInvalidHookAccess ( ) ;
29782978 updateHookTypesDev ( ) ;
@@ -3118,7 +3118,7 @@ if (__DEV__) {
31183118 updateHookTypesDev ( ) ;
31193119 return rerenderDeferredValue ( value ) ;
31203120 } ,
3121- useTransition(): [(() => void ) => void , boolean ] {
3121+ useTransition(): [boolean, (() => void ) => void ] {
31223122 currentHookNameInDev = 'useTransition' ;
31233123 warnInvalidHookAccess ( ) ;
31243124 updateHookTypesDev ( ) ;
0 commit comments