summaryrefslogtreecommitdiff
path: root/packages/integrations/solid/server.js
diff options
context:
space:
mode:
authorGravatar hippotastic <6137925+hippotastic@users.noreply.github.com> 2022-04-19 20:37:27 +0200
committerGravatar GitHub <noreply@github.com> 2022-04-19 13:37:27 -0500
commit5e28b790950bd29f4f7067082ad13b759594509f (patch)
tree13d6cb0c2c29ec29fb93c627cb5e17196ae3d975 /packages/integrations/solid/server.js
parentcfa11eecbf7cf45dee7292af2586a9147382093b (diff)
downloadastro-5e28b790950bd29f4f7067082ad13b759594509f.tar.gz
astro-5e28b790950bd29f4f7067082ad13b759594509f.tar.zst
astro-5e28b790950bd29f4f7067082ad13b759594509f.zip
Fix location of SolidJS pre-hydration code (#3140)
* Run before hydration instead of inlining a script after each component
Diffstat (limited to 'packages/integrations/solid/server.js')
-rw-r--r--packages/integrations/solid/server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/integrations/solid/server.js b/packages/integrations/solid/server.js
index ccee482ea..636fa50f6 100644
--- a/packages/integrations/solid/server.js
+++ b/packages/integrations/solid/server.js
@@ -20,7 +20,7 @@ function renderToStaticMarkup(Component, props, children) {
})
);
return {
- html: html + `<script>window._$HY||(_$HY={events:[],completed:new WeakSet,r:{}})</script>`,
+ html: html,
};
}