Unverified Commit 7bcd46a9 authored by Josh Story's avatar Josh Story Committed by GitHub

[dynamicIO] Track module loading in dev always (#81388)

In dev we prerender and render concurrently. The former to validate
dynamicIO rules. The latter to stream a response as soon as possible. If
we only track module loading during prerenders it is possible to kick
off loading a chunk during the render and then not observe that chunk
load during prerender, leading to an early abort before all modules have
had a chance to load.

To solve this we simply always track module loading in dev.
parent f4f0c449
......@@ -1221,6 +1221,9 @@ async function renderToHTMLOrFlightImpl(
if (!renderOpts.experimental.dynamicIO) {
return false
}
if (renderOpts.dev) {
return true
}
const workUnitStore = workUnitAsyncStorage.getStore()
return !!(
workUnitStore &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment