next.js
7cc0ed1f - Fix: Resolve <Head> PPR resume mismatch by search params (#82587)

Commit
142 days ago
Fix: Resolve <Head> PPR resume mismatch by search params (#82587) The `key` prop on `<Head>` component differs during prerender and a PPR resume because of search params being part of the key, causing the resume to treat them as distinct components, hence the error\*. However, it is necessary semantically to include search params in the key for `<Head>`, so we will remove the search params from the key during the resume SSR. \*Mismatch Error: ``` тип [Error: Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.] ```
Author
Parents
Loading