0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Fix renderer-solid (fix #2336) (#2359)

This commit is contained in:
toSayNothing 2022-01-11 23:31:26 +08:00 committed by GitHub
parent c029cbb2d1
commit f482c626a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/renderer-solid': patch
---
fix renderer-solid

View file

@ -19,7 +19,7 @@ function renderToStaticMarkup(Component, props, children) {
children: children != null ? ssr(`<astro-fragment>${children}</astro-fragment>`) : children,
})
);
return { html: html + `<script>window._$HYDRATION||(window._$HYDRATION={events:[],completed:new WeakSet})</script>` };
return { html: html + `<script>window._$HY||(_$HY={events:[],completed:new WeakSet,r:{}})</script>` };
}
export default {