File tree 2 files changed +3
-3
lines changed
react-dom-bindings/src/client
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3401,7 +3401,7 @@ export function suspendResource(
3401
3401
}
3402
3402
}
3403
3403
3404
- export function waitForCommitToBeReady ( ) : null | ( Function => Function ) {
3404
+ export function waitForCommitToBeReady ( ) : null | ( ( ( ) => void ) => ( ) => void ) {
3405
3405
if ( suspendedState === null ) {
3406
3406
throw new Error (
3407
3407
'Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.' ,
Original file line number Diff line number Diff line change @@ -1308,6 +1308,8 @@ function commitRootWhenReady(
1308
1308
updatedLanes ,
1309
1309
suspendedRetryLanes ,
1310
1310
SUSPENDED_COMMIT ,
1311
+ completedRenderStartTime ,
1312
+ completedRenderEndTime ,
1311
1313
) ,
1312
1314
) ;
1313
1315
const didAttemptEntireTree = ! didSkipSuspendedSiblings ;
@@ -3001,8 +3003,6 @@ function commitRoot(
3001
3003
ReactSharedInternals . T = prevTransition ;
3002
3004
setCurrentUpdatePriority ( previousUpdateLanePriority ) ;
3003
3005
}
3004
-
3005
- return null ;
3006
3006
}
3007
3007
3008
3008
function commitRootImpl (
You can’t perform that action at this time.
0 commit comments