Skip to content

Commit

Permalink
fix: add astro-static-slot to the list of inert tags in astro css (#7189
Browse files Browse the repository at this point in the history
)
  • Loading branch information
elevatebart committed May 24, 2023
1 parent 55a0439 commit 2bda7fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/static-slot-css.md
@@ -0,0 +1,5 @@
---
'astro': patch
---

fix: add astro-static-slot to the list of inert tags in astro css
2 changes: 1 addition & 1 deletion packages/astro/src/runtime/server/scripts.ts
@@ -1,7 +1,7 @@
import type { SSRResult } from '../../@types/astro';
import islandScript from './astro-island.prebuilt.js';

const ISLAND_STYLES = `<style>astro-island,astro-slot{display:contents}</style>`;
const ISLAND_STYLES = `<style>astro-island,astro-slot,astro-static-slot{display:contents}</style>`;

export function determineIfNeedsHydrationScript(result: SSRResult): boolean {
if (result._metadata.hasHydrationScript) {
Expand Down

0 comments on commit 2bda7fb

Please sign in to comment.