@@ -2223,15 +2223,10 @@ async function renderToStream(
2223
2223
const hadCacheMissInStaticStagePromise =
2224
2224
createPromiseWithResolvers < boolean > ( )
2225
2225
2226
- console . debug ( `renderToStream (1) :: attempting render` )
2227
-
2228
2226
const reactServerStreamPromise = renderInStages (
2229
2227
initialRenderServerDebugChannel ?. channel ,
2230
2228
initialRenderReactController . signal ,
2231
2229
( ) => {
2232
- console . debug (
2233
- `renderToStream (1) :: static task finished with ${ cacheSignal [ 'count' ] } caches pending`
2234
- )
2235
2230
// If all cache reads initiated in the static stage have completed,
2236
2231
// then either we don't need to fill any caches, or all of them are warm.
2237
2232
// On the other hand, if we have pending cache reads, then we had a cache miss.
@@ -2275,23 +2270,8 @@ async function renderToStream(
2275
2270
// To avoid this, we await `cacheReady` repeatedly with an extra delay to let React try render new content
2276
2271
// (and potentially discover more caches).
2277
2272
await cacheSignal . cacheReadyInRender ( )
2278
- console . debug ( `renderToStream (1) :: cacheReady` )
2279
2273
initialRenderReactController . abort ( )
2280
2274
2281
- console . debug (
2282
- '=' . repeat ( 80 ) +
2283
- '\n' +
2284
- `renderToStream :: restarting render` +
2285
- ( `\n cache entries: ${ prerenderResumeDataCache . cache . size } \n` +
2286
- [ ...prerenderResumeDataCache . cache . keys ( ) ]
2287
- . map ( ( k ) => ' - ' + k )
2288
- . join ( '\n' ) +
2289
- `\n fetch entries: ${ prerenderResumeDataCache . fetch . size } \n` +
2290
- [ ...prerenderResumeDataCache . fetch . keys ( ) ]
2291
- . map ( ( k ) => ' - ' + k )
2292
- . join ( '\n' ) +
2293
- '\n' )
2294
- )
2295
2275
// The initial render acted as a prospective render.
2296
2276
// Now, we need to clear the state we've set up for it and do a regular render.
2297
2277
requestStore . prerenderResumeDataCache = null
@@ -2305,11 +2285,11 @@ async function renderToStream(
2305
2285
const finalRenderServerDebugChannel = debugChannel ?. serverSide
2306
2286
2307
2287
reactServerResult = new ReactServerResult (
2308
- await renderInStages ( finalRenderServerDebugChannel , undefined , ( ) => {
2309
- console . debug (
2310
- `renderToStream (2) :: end of static stage after restart. ${ cacheSignal [ 'count' ] } caches pending`
2311
- )
2312
- } )
2288
+ await renderInStages (
2289
+ finalRenderServerDebugChannel ,
2290
+ undefined ,
2291
+ undefined
2292
+ )
2313
2293
)
2314
2294
}
2315
2295
0 commit comments