File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
packages/react-dom/src/server Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ type Controls = {|
42
42
startWriting ( ) : void ,
43
43
| } ;
44
44
45
- function pipeToNodeWritable (
45
+ function createRequestImpl (
46
46
children : ReactNodeList ,
47
47
destination : Writable ,
48
- options ?: Options ,
49
- ) : Controls {
50
- const request = createRequest (
48
+ options : void | Options ,
49
+ ) {
50
+ return createRequest (
51
51
children ,
52
52
destination ,
53
53
createResponseState ( options ? options . identifierPrefix : undefined ) ,
@@ -57,6 +57,14 @@ function pipeToNodeWritable(
57
57
options ? options . onCompleteAll : undefined ,
58
58
options ? options . onReadyToStream : undefined ,
59
59
) ;
60
+ }
61
+
62
+ function pipeToNodeWritable (
63
+ children : ReactNodeList ,
64
+ destination : Writable ,
65
+ options ?: Options ,
66
+ ) : Controls {
67
+ const request = createRequestImpl ( children , destination , options ) ;
60
68
let hasStartedFlowing = false ;
61
69
startWork ( request ) ;
62
70
return {
You can’t perform that action at this time.
0 commit comments