We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
renderToPipeableStream
I am trying to use SSR with Vite and React.
I have to use renderToPipeableStream because I'm using code splitting and Suspense which is not compatible with renderToString.
Suspense
renderToString
It's not possible to use transformIndexHtml together with renderToPipeableStream.
transformIndexHtml
How can I inject the preamble by other means or disable it?
https://github.com/C5H8NNaO4/vite-ssr-stream-repro
git clone https://github.com/C5H8NNaO4/vite-ssr-stream-repro cd vite-ssr-stream-repro yarn yarn dev
Windows 11, Node v18
yarn
No response
The text was updated successfully, but these errors were encountered:
FYI, create-vite-extra repo recently added streaming example:
ssr-react-streaming
This one still uses index.html to setup bootstrap scripts and it doesn't do React 19 style full document rendering though.
index.html
Sorry, something went wrong.
No branches or pull requests
Describe the bug
I am trying to use SSR with Vite and React.
I have to use
renderToPipeableStream
because I'm using code splitting andSuspense
which is not compatible withrenderToString
.It's not possible to use
transformIndexHtml
together withrenderToPipeableStream
.How can I inject the preamble by other means or disable it?
Reproduction
https://github.com/C5H8NNaO4/vite-ssr-stream-repro
Steps to reproduce
git clone https://github.com/C5H8NNaO4/vite-ssr-stream-repro
cd vite-ssr-stream-repro
yarn
yarn dev
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: