We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ad3010 commit b5b3255Copy full SHA for b5b3255
1 file changed
src/index.ts
@@ -36,9 +36,8 @@ export default function (): AstroIntegration {
36
'head-inline',
37
readFileSync(new URL('../client-shim.min.js', import.meta.url), { encoding: 'utf-8' })
38
);
39
- // Inject the hydration support, using 'page' instead of 'before-hydration'
40
- // to work around Astro 6 not emitting before-hydration chunks for the client build
41
- injectScript('page', `import '@semantic-ui/astro-lit/hydration-support.js';`);
+ // Inject the hydration code, before a component is hydrated.
+ injectScript('before-hydration', `import '@semantic-ui/astro-lit/hydration-support.js';`);
42
// Add the lit renderer so that Astro can understand lit components.
43
addRenderer({
44
name: '@semantic-ui/astro-lit',
0 commit comments