Open mrose opened 5 hours ago
Thanks for reporting @mrose! I was able to reproduce the bug and this happens when you don't use any client components before a Suspense boundary, but then you're adding a client component inside the Suspense. A fix is already on the way!
Please check this issue using the latest version of the framework, as it is now available to install. Please let me know if the issue persists in another use case and if so, then please provide a reproduction to have more info on this.
Describe the bug
Using page-based routing, when I use Suspense the three scripts are duplicated. The duplicated scripts appear after the suspended component is rendered on the browser. Let me know if you need more to repro.
Reproduction
No response
Steps to reproduce
Create an async page which imports a Delay component and React Suspense. The async Delay component uses setTimeout to delay the output of some text. Open the dev server and display the page in the browser.
System Info
Used Package Manager
pnpm
Logs
No response
Validations