Company
Date Published
Author
Stencil Team
Word count
700
Language
English
Hacker News points
None

Summary

Stencil has introduced several enhancements to improve the use of slots without relying on the Shadow DOM in its components, responding to community feedback and addressing various issues, such as rendering order and incorrect application of the 'hidden' attribute. These changes, now available in Stencil v4.12.1, aim to align slot polyfill behavior more closely with that of the native Shadow DOM. While marked as experimental in version 4, the team plans to make them default in Stencil v5. Users can opt into these improvements by updating their configuration files, and the Stencil team encourages testing and reporting any unresolved or new issues. Though these updates do not address server-side rendering (SSR) challenges, they remain a priority for future development. The contributions of community member @johnjenkins were pivotal in tackling these slot-related issues.