lazarv / react-server

The easiest way to build React apps with server-side rendering
https://react-server.dev
MIT License
121 stars 6 forks source link

fix: suspense client component #78

Closed lazarv closed 1 week ago

lazarv commented 1 week ago

This fixes an issue about adding scripts to the HTML document in development mode for HMR when the initial page don't use a client component, but a client component is rendered in a <Suspense> boundary. #77

Adds a test to verify this use case from now on.