-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Static SSR (async) inserting hyrdation script when using lazy and Suspense #1931
Copy link
Copy link
Closed
Description
Describe the bug
When using renderToStringAsync() with lazy and <Suspense>, since version 1.8.x a <script> tag is injected at the end of the html string which looks like it's for hydration. hydratable is not set to true in babel config and this is a change since 1.7.12.
Your Example Website or App
https://stackblitz.com/edit/solid-nollup-epm7fs?file=package.json
Steps to Reproduce the Bug or Issue
- from the stackblitz link, run
npm run start(should happen automatically) - the console should log the html string, containing a script tag
- to see how it used to be: change
package.jsonversion for solid-js "^1.712" to "1.7.12" and save. - then run
npm install && npm run start - the console should log a html string without a script tag
Expected behavior
I do not expect any <script> to be inserted into the html for hydration, just static html rendered from the Solid JSX components.
Screenshots or Videos
No response
Platform
- OS: Linux
- Browser: N/A: node
- Version: 18.18.2
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels