SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 117 JavaScript

[Flight] Fix double-incremented pending chunks counter (#31833)

Before calling `emitTimingChunk` inside of `forwardDebugInfo`, we must
not increment `request.pendingChunks`, as this is already done inside of
the `emitTimingChunk` function.

I don't have a unit test for this, but manually verified that this fixes
the hanging responses in https://github.com/vercel/next.js/pull/73804.
H
Hendrik Liebau committed
7eb8234f7cbeda298fffb1566b5cc771c09eff2e
Parent: 2bd1c75
Committed by GitHub <noreply@github.com> on 12/18/2024, 3:35:02 PM