0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -05:00

fix: prevent client hydration when rendering via Container API

This commit is contained in:
Emanuele Stoppa 2024-06-26 13:50:13 +01:00
parent 8d0d7044f6
commit 697a539adf
2 changed files with 2 additions and 1 deletions

View file

@ -2,4 +2,4 @@
import Counter from './Counter.jsx';
---
<Counter initialCount={5} />
<Counter initialCount={5} client:idle />

View file

@ -60,6 +60,7 @@ function getViteConfiguration(
'react/jsx-runtime',
'react/jsx-dev-runtime',
'react-dom',
``,
],
exclude: [reactConfig.server],
},