@@ -281,7 +281,7 @@ function defaultErrorHandler(error: mixed) {
281281
282282function noop ( ) : void { }
283283
284- function createRequestImpl (
284+ export function createRequest (
285285 children : ReactNodeList ,
286286 resumableState : ResumableState ,
287287 renderState : RenderState ,
@@ -352,86 +352,6 @@ function createRequestImpl(
352352 return request ;
353353}
354354
355- export function createRequest (
356- children : ReactNodeList ,
357- resumableState : ResumableState ,
358- renderState : RenderState ,
359- rootFormatContext : FormatContext ,
360- progressiveChunkSize : void | number ,
361- onError : void | ( ( error : mixed ) => ?string ) ,
362- onAllReady : void | ( ( ) => void ) ,
363- onShellReady : void | ( ( ) => void ) ,
364- onShellError : void | ( ( error : mixed ) => void ) ,
365- onFatalError : void | ( ( error : mixed ) => void ) ,
366- onPostpone : void | ( ( reason : string ) => void ) ,
367- ) : Request {
368- return createRequestImpl (
369- children ,
370- resumableState ,
371- renderState ,
372- rootFormatContext ,
373- progressiveChunkSize ,
374- onError ,
375- onAllReady ,
376- onShellReady ,
377- onShellError ,
378- onFatalError ,
379- onPostpone ,
380- ) ;
381- }
382-
383- export function createPrerenderRequest (
384- children : ReactNodeList ,
385- resumableState : ResumableState ,
386- renderState : RenderState ,
387- rootFormatContext : FormatContext ,
388- progressiveChunkSize : void | number ,
389- onError : void | ( ( error : mixed ) => ?string ) ,
390- onAllReady : void | ( ( ) => void ) ,
391- onFatalError : void | ( ( error : mixed ) => void ) ,
392- onPostpone : void | ( ( reason : string ) => void ) ,
393- ) : Request {
394- return createRequestImpl (
395- children ,
396- resumableState ,
397- renderState ,
398- rootFormatContext ,
399- progressiveChunkSize ,
400- onError ,
401- onAllReady ,
402- undefined ,
403- undefined ,
404- onFatalError ,
405- onPostpone ,
406- ) ;
407- }
408-
409- export function resumeRequest (
410- children : ReactNodeList ,
411- postponedState : PostponedState ,
412- renderState : RenderState ,
413- onError : void | ( ( error : mixed ) => ?string ) ,
414- onAllReady : void | ( ( ) => void ) ,
415- onShellReady : void | ( ( ) => void ) ,
416- onShellError : void | ( ( error : mixed ) => void ) ,
417- onFatalError : void | ( ( error : mixed ) => void ) ,
418- onPostpone : void | ( ( reason : string ) => void ) ,
419- ) : Request {
420- return createRequestImpl (
421- children ,
422- postponedState . resumableState ,
423- renderState ,
424- postponedState . rootFormatContext ,
425- postponedState . progressiveChunkSize ,
426- onError ,
427- onAllReady ,
428- onShellReady ,
429- onShellError ,
430- onFatalError ,
431- onPostpone ,
432- ) ;
433- }
434-
435355let currentRequest : null | Request = null ;
436356
437357export function resolveRequest ( ) : null | Request {
0 commit comments