Skip to content

Conversation

@fusionstrings
Copy link
Contributor

@fusionstrings fusionstrings commented Oct 24, 2025

Adds support for the serializable option when creating shadow DOM. This helps serialising shadow DOM for server-side rendering scenarios.
This change is backward compatible

Changes

  • Added serializable?: boolean option
  • Added test coverage for the new option

Usage

register(MyComponent, 'my-element', [], { 
    shadow: true, 
    serializable: true 
});

Reference

Copy link
Member

@rschristian rschristian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers

@rschristian rschristian merged commit 0a8ccf7 into preactjs:master Oct 25, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants