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:
parent
8d0d7044f6
commit
697a539adf
2 changed files with 2 additions and 1 deletions
|
@ -2,4 +2,4 @@
|
|||
import Counter from './Counter.jsx';
|
||||
---
|
||||
|
||||
<Counter initialCount={5} />
|
||||
<Counter initialCount={5} client:idle />
|
||||
|
|
|
@ -60,6 +60,7 @@ function getViteConfiguration(
|
|||
'react/jsx-runtime',
|
||||
'react/jsx-dev-runtime',
|
||||
'react-dom',
|
||||
``,
|
||||
],
|
||||
exclude: [reactConfig.server],
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue