- Can't use SolidJS polymorphics with components that require hydration
The component passed in the as prop is not considered as a client component, so it wouldn't hydrate.
⭐ Solution: Create a wrapper Solid component to use in Astro withclient:directives - Props spread doesn't work as expected
Spread props need to come first to OVERRIDE other props, not the other way around. onClickandonclickresults in silent hydration errors
This is a limitation mentioned in the documentation.
❓ Workaround: Useon:clickinstead ofonClickoronclick. Not sure why this works.- Navigation results in whole page swaps
This is annoying, but it's workable. - Contexts don't work
...and it never will, because of the Islands architecture.- If you need contexts, your component tree needs to be fully client-side.
- If you need global contexts, you need to use a state management library.