182import {
183 disableLegacyContext,
184▶ disableLegacyContextForFunctionComponents,
185 enableScopeAPI,
186 enableAsyncIterableChildren,
· · ·
450};
451
452▶function createPreamble(): Preamble {
453 return {
454 content: createPreambleState(),
· · ·
467// as little as 80%. We can receive half of that each 500ms - at best. In practice,
468// a little bandwidth is lost to processing and contention - e.g. CSS and images that
469▶// are downloaded along with the main content. So we estimate about half of that to be
470// the lower end throughput. In other words, we expect that you can at least show
471// about 12.5kb of content per 500ms. Not counting starting latency for the first
· · ·
474const DEFAULT_PROGRESSIVE_CHUNK_SIZE = 12800;
475
476▶function getBlockingRenderMaxSize(request: Request): number {
477 // We want to make sure that we can block the reveal of a well designed complete
478 // shell but if you have constructed a too large shell (e.g. by not adding any
· · ·
509}
510
511▶function isEligibleForOutlining(
512 request: Request,
513 boundary: SuspenseBoundary,
+ 189 more matches in this file