You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Resuming a prerender that was aborted while a retried task was rendering drops part of the boundary #37709
React version: main (d083ec1), 19.3.0-experimental-cbb046ab-20260731
Steps To Reproduce
Prerender a boundary whose content suspends once, so it gets retried as its own task, and then aborts the prerender synchronously while rendering a later child.
The resumed boundary contains only the child that was rendering when the prerender was aborted: <div>World</div>.
retryRenderTask rewinds the segment to where the attempt started, but task.keyPath and task.childIndex still point at <Abort /> when the task is finished through abortUnwoundTask. trackPostpone records the hole as slot 1 of <section>, and the resume renders <Abort /> alone into the boundary's segment.
We run into this in Next.js 16 with cacheComponents: reading Date.now() in a Client Component aborts the prerender synchronously, the page boundary resumes empty and hydration fails with #418.
The expected behavior
The hole covers everything the aborted attempt discarded, so the resume renders the whole content: <div><section><span>Hello</span>World</section></div>.
Activity
[Fizz] Postpone a task aborted while rendering from where it started (#…
[Fizz] Postpone a task aborted while rendering from where it started (r…
[Fizz] Postpone a task aborted while rendering from where it started (r…
[Fizz] Postpone a task aborted while rendering from where it started (r…
[Fizz] Postpone a task aborted while rendering from where it started (r…
[Fizz] Postpone a task aborted while rendering from where it started (r…
Revert sync abort replay restoration pending a complete fix (#37852)
Revert sync abort replay restoration pending a complete fix (#37852)
Preserve the rendered shell on synchronous prerender abort
Preserve the rendered shell on synchronous prerender abort
Preserve the rendered shell on synchronous prerender abort
Preserve the rendered shell on synchronous prerender abort
Preserve the rendered shell on synchronous prerender abort
Preserve the rendered shell on synchronous prerender abort
Preserve the rendered shell on synchronous prerender abort
Preserve the rendered shell on synchronous prerender abort
Preserve the rendered shell on synchronous prerender abort
Preserve the rendered shell on synchronous prerender abort
Preserve the rendered shell on synchronous prerender abort
Preserve the rendered shell on synchronous prerender abort (#37853)
Preserve the rendered shell on synchronous prerender abort (#37853)