next.js
c2914790 - partial fallbacks: adapter support for intermediate shells (#91902)

Commit
35 days ago
partial fallbacks: adapter support for intermediate shells (#91902) Previously, `partialFallback` was only emitted when all dynamic params could become fully concrete after upgrade. For a route like `/prefix/[one]/[two]` where only `[one]` has generateStaticParams, the feature was disabled entirely. This relaxes the guard to allow adapters to produce an intermediate shell for not fully known params, and tweaks the handling to support when both known and unknown params are provided to the render. Concretely: - When partial `nxtP*` params are provided during background revalidation but `normalizeDynamicRouteParams `rejects them (missing params), merge the provided params into the existing params to override placeholders. - Compute `effectiveFallbackRouteParams` by filtering to only params that still have placeholder values. Use this filtered set for `fallbackRouteParams` so intermediate shells render resolved params in the static shell and only suspend for truly unknown params
Author
Parents
Loading