Hello!
I am having an issue with the new React Code Components that is preventing us from adopting them, but I have not been able to find any information about how to resolve it in the documentation.
Any code component I create has a react hydration error which results in a duplicate element being rendered - one from before hydration and one after, which is functional. The only exceptions are components made purely of phrasing elements like span and b.
The components are being placed inside a Div block, and the post hydration html looks like this:
<div class="div-block-2"><code-island ...>
<div class="hydrator">
hydrator
</div>
<div class="hydrator">
hydrator
</div>
</code-island></div>
Where the entire component is simply <div class="hydrator">hydrator</div> - so there is nothing dynamic that should interfere with hydration or change based on the server/client.
Am I missing something that could be breaking the serverside rendering?