Skip to content

Commit

Permalink
Fix renderer-solid (fix #2336) (#2359)
Browse files Browse the repository at this point in the history
  • Loading branch information
toSayNothing committed Jan 11, 2022
1 parent c029cbb commit f482c62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/happy-penguins-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/renderer-solid': patch
---

fix renderer-solid
2 changes: 1 addition & 1 deletion packages/renderers/renderer-solid/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f482c62

Please sign in to comment.