You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is more likely this caused by accessing props.children twice than the <td> being wrapped. It is rendering the <p> element twice and only finding one.
Oh, yeah you're right. I just tried it with a <div> instead and got the same thing. Am I misusing Solid.js in this case? Should I instead be passing in a function and calling it?
Thanks.
Yeah createMemo it or use the children helper around the props.children access. This issue has been reported a number of times now mostly linked in this issue: #1977
I'm going to close this as a duplicate but in general accessing props.children multiple times like that will render all the children multiple times so its not a good practice even without hydration and ssr.
Describe the bug
When you try to write a component around
<td>
, you get a hydration mismatch error.Your Example Website or App
https://github.com/samualtnorman/solid-start-bug/tree/hydration
Steps to Reproduce the Bug or Issue
hydration
branchpnpm install
pnpm dev
Expected behavior
It not error.
Screenshots or Videos
Platform
@solidjs/meta
0.29.4@solidjs/router
0.15.2@solidjs/start
1.0.11solid-js
1.9.4Additional context
No response
The text was updated successfully, but these errors were encountered: