The issue involves SSR-specific behavior and requires understanding React internals.
The issue involves `<link rel='preload' as='font' ...>` being duplicated in SSR HTML, which started occurring from React 19.2.0. A test case has been provided in a PR, but the fix likely requires understanding React's SSR handling and internal mechanisms. The scope is somewhat clear, but the implementation may involve deeper React internals.
React version: since 19.2.0
Created a PR with a test case as a reproduction in https://github.com/facebook/react/pull/35890
Initially reported on Waku https://github.com/wakujs/waku/issues/1964#issuecomment-3948147703. It doesn't reproduce on 19.1. It reproduces from 19.2 and latest canary.
<link rel="preload" as="font" ... /> appears twice in SSR html
<link rel="preload" as="font" .../> appears once in SSR html
Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!