AI & Agent Dev Bug Sandbox logo
AI & Agent Dev Bug Sandbox
Back to Radar

Next.Js Does Not Expose React 19.2 ProgressiveChunkSize, Causing Suspense Fallback In SSR HTML For Large Content

React 19.2 introduced outlining, where Suspense boundaries larger than the default progressiveChunkSize (12800 bytes) render their fallback in the server HTML. Next.js hardcodes this default and does not expose a configuration option, resulting in incorrect initial SSR output for large content in both App and Pages routers.

highConfidence 92%Next.jsTurbopackApp RouterRoute HandlersAffected V16.2.1-Canary.4Affected V15.5.14

Origin Analysis

React 19.2's renderToReadableStream has a new default option progressiveChunkSize=12800. When a Suspense boundary's content exceeds this byte size, React renders the fallback instead of the actual content in the initial HTML stream to enable progressive rendering. Next.js calls renderToReadableStream without allowing users to override this option, so the default applies and large Suspense boundaries incorrectly show fallbacks in SSR.
1. Create a Next.js 16.2.1-canary.4 (or 15.5.14) project with React 19.2.4.\n2. Add a Suspense boundary containing more than 12800 bytes of static HTML.\n3. Run `next dev` or `next build && next start`.\n4. Open the page with JavaScript disabled or inspect the initial HTML response.\n5. Observe that the Suspense fallback is rendered instead of the actual large content.

Fixing Code Block

Edge Case Audit

Setting `progressiveChunkSize` to `Infinity` disables the outlining optimization, which may increase time-to-first-byte (TTFB) for very large streams and reduce progressive rendering granularity. Lower values may cause more Suspense boundaries to render fallbacks, potentially harming SEO. The patch requires updating both App and Pages routers; if only one is updated, inconsistent behavior may occur. Before applying, ensure the React version supports the `progressiveChunkSize` option (React 19.2+). Rollback by removing the config option or reverting the patch. Test thoroughly in production build and with concurrent requests, as streaming behavior may interact with Next.js caching and incremental adoption.

Ecosystem Topology

Agent Frameworks

LangChain, LlamaIndex, and Pydantic

  1. highProperty graph relation keys collide when entity IDs or labels contain underscores
  2. highCodeActAgent drops assistant tool-call metadata during handoff, leaving an orphan tool response
  3. high[Bug]: HierarchicalNodeParser async methods return the documents unsplit
  4. highLLM.predict_and_call fails with ValidationError for non-function-calling models when react_chat_formatter is omitted
  5. highAnthropic streaming server-tool input_json_delta overwrites completed client tool_use arguments due to stale cur_tool_call state