summaryrefslogtreecommitdiff
path: root/packages/integrations/react/static-html.js
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2023-05-26 22:37:33 +0800
committerGravatar GitHub <noreply@github.com> 2023-05-26 22:37:33 +0800
commit1c77779dd66a6db77c81ed235da076a6118decde (patch)
treef013ae2df6f5820ef4c006e980de9d46e2c36e4b /packages/integrations/react/static-html.js
parent6c7df28ab34b756b8426443bf6976e24d4611a62 (diff)
downloadastro-1c77779dd66a6db77c81ed235da076a6118decde.tar.gz
astro-1c77779dd66a6db77c81ed235da076a6118decde.tar.zst
astro-1c77779dd66a6db77c81ed235da076a6118decde.zip
Fix `astro-static-slot` hydration mismatch error (#7196)
Diffstat (limited to 'packages/integrations/react/static-html.js')
-rw-r--r--packages/integrations/react/static-html.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/integrations/react/static-html.js b/packages/integrations/react/static-html.js
index 37fda1983..e319a40c7 100644
--- a/packages/integrations/react/static-html.js
+++ b/packages/integrations/react/static-html.js
@@ -7,7 +7,7 @@ import { createElement as h } from 'react';
* As a bonus, we can signal to React that this subtree is
* entirely static and will never change via `shouldComponentUpdate`.
*/
-const StaticHtml = ({ value, name, hydrate }) => {
+const StaticHtml = ({ value, name, hydrate = true }) => {
if (!value) return null;
const tagName = hydrate ? 'astro-slot' : 'astro-static-slot';
return h(tagName, {