@solidjs/element@2.0.0-rc.3
📦 solid-jsView on GitHub →
🐛 1 fixes🔧 3 symbols
Summary
This patch release fixes a bug where compiled Solid element libraries embedded in a host Solid page would fail to render correctly. It also updates dependencies to specific release candidate versions.
🐛 Bug Fixes
- Fall back to an ownerless root when the looked-up `_$owner` was stamped by a different copy of the Solid runtime. This resolves an issue where compiled element libraries embedded in a Solid host page would crash inside `connectedCallback`, leaving the shadow root empty. The `withSolid` function now catches the adoption wiring error, warns, and renders in an independent root, preserving the element's behavior on non-Solid pages. Errors thrown by the component itself will still propagate. Owner adoption for same-runtime contexts (context into custom elements) remains unchanged.