@@ -99,7 +99,7 @@ function originalRenderToNodeStream(element, cache, streamingStart, memLife=0) {
99
99
return new ReactMarkupReadableStream ( element , false , cache , streamingStart , memLife ) ;
100
100
}
101
101
102
- export function renderToNodeStream ( element , cache , res , htmlStart , htmlEnd ) {
102
+ export function renderToNodeStream ( element , cache , res , htmlStart , htmlEnd , memLife ) {
103
103
104
104
const streamingStart = {
105
105
sliceStartCount : htmlStart . length ,
@@ -109,7 +109,7 @@ export function renderToNodeStream(element, cache, res, htmlStart, htmlEnd) {
109
109
cacheStream . pipe ( res ) ;
110
110
cacheStream . write ( htmlStart ) ;
111
111
112
- const stream = originalRenderToNodeStream ( element , cache , streamingStart ) ;
112
+ const stream = originalRenderToNodeStream ( element , cache , streamingStart , memLife ) ;
113
113
stream . pipe ( cacheStream , { end : false } ) ;
114
114
stream . on ( "end" , ( ) => {
115
115
cacheStream . end ( htmlEnd ) ;
@@ -126,7 +126,7 @@ function originalRenderToStaticNodeStream(element, cache, streamingStart, memLif
126
126
return new ReactMarkupReadableStream ( element , true , cache , streamingStart , memLife ) ;
127
127
}
128
128
129
- export function renderToStaticNodeStream ( element , cache , res , htmlStart , htmlEnd ) {
129
+ export function renderToStaticNodeStream ( element , cache , res , htmlStart , htmlEnd , memLife ) {
130
130
131
131
const streamingStart = {
132
132
sliceStartCount : htmlStart . length ,
@@ -136,7 +136,7 @@ export function renderToStaticNodeStream(element, cache, res, htmlStart, htmlEnd
136
136
cacheStream . pipe ( res ) ;
137
137
cacheStream . write ( htmlStart ) ;
138
138
139
- const stream = originalRenderToStaticNodeStream ( element , cache , streamingStart ) ;
139
+ const stream = originalRenderToStaticNodeStream ( element , cache , streamingStart , memLife ) ;
140
140
stream . pipe ( cacheStream , { end : false } ) ;
141
141
stream . on ( "end" , ( ) => {
142
142
cacheStream . end ( htmlEnd ) ;
0 commit comments