Unverified Commit d3966310 authored by Sebastian Markbåge's avatar Sebastian Markbåge Committed by GitHub

Don't terminate PPR renders with dynamicUsageErr (#57488)

We track dynamicUsageErr in patch-fetch usually and then abort the whole
prerender if that happens. With PPR we use maybePostpone and not that so
we should just not abort when we use ppr.
parent 4666e854
...@@ -195,7 +195,10 @@ export async function createComponentTree({ ...@@ -195,7 +195,10 @@ export async function createComponentTree({
} }
} }
if (staticGenerationStore?.dynamicUsageErr) { if (
staticGenerationStore?.dynamicUsageErr &&
!staticGenerationStore.experimental.ppr
) {
throw staticGenerationStore.dynamicUsageErr throw staticGenerationStore.dynamicUsageErr
} }
......
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