@@ -190,10 +190,10 @@ export opaque type Request = {
190190 // onCompleteAll is called when all pending task is done but it may not have flushed yet.
191191 // This is a good time to start writing if you want only HTML and no intermediate steps.
192192 onCompleteAll : ( ) => void ,
193- // onReadyToStream is called when there is at least a root fallback ready to show.
193+ // onCompleteShell is called when there is at least a root fallback ready to show.
194194 // Typically you don't need this callback because it's best practice to always have a
195195 // root fallback ready so there's no need to wait.
196- onReadyToStream : ( ) => void ,
196+ onCompleteShell : ( ) => void ,
197197} ;
198198
199199// This is a default heuristic for how to split up the HTML content into progressive
@@ -227,7 +227,7 @@ export function createRequest(
227227 progressiveChunkSize : void | number ,
228228 onError : void | ( ( error : mixed ) => void ) ,
229229 onCompleteAll : void | ( ( ) => void ) ,
230- onReadyToStream : void | ( ( ) => void ) ,
230+ onCompleteShell : void | ( ( ) => void ) ,
231231) : Request {
232232 const pingedTasks = [ ] ;
233233 const abortSet : Set < Task > = new Set ( ) ;
@@ -250,7 +250,7 @@ export function createRequest(
250250 partialBoundaries : [ ] ,
251251 onError : onError === undefined ? defaultErrorHandler : onError ,
252252 onCompleteAll : onCompleteAll === undefined ? noop : onCompleteAll ,
253- onReadyToStream : onReadyToStream === undefined ? noop : onReadyToStream ,
253+ onCompleteShell : onCompleteShell === undefined ? noop : onCompleteShell ,
254254 } ;
255255 // This segment represents the root fallback.
256256 const rootSegment = createPendingSegment ( request , 0 , null , rootFormatContext ) ;
@@ -1370,8 +1370,8 @@ function finishedTask(
13701370 }
13711371 request . pendingRootTasks -- ;
13721372 if ( request . pendingRootTasks === 0 ) {
1373- const onReadyToStream = request . onReadyToStream ;
1374- onReadyToStream ( ) ;
1373+ const onCompleteShell = request . onCompleteShell ;
1374+ onCompleteShell ( ) ;
13751375 }
13761376 } else {
13771377 boundary . pendingTasks -- ;
0 commit comments