-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Should this be an RFC?
- This is not a substantial change
Which package is this a feature request for?
SSR (@lit-labs/ssr)
Description
From #3605 (comment)
A function that takes a custom element tag name and attributes/props, and return some rendered results, like the template shadowroot with the proper attributes and contents, and reflected attributes for the host element can be generally useful outside of the React integration.
The implementation made for labs/ssr-react can be moved to labs/ssr for use in other SSR integrations where the input doesn't have to be a TemplateResult.
Some changes to consider for the general implementation:
- Separating attributes and props arguments. In the
ssr-react, we just get a single "props" object from React and use anincheck to guess as to whether to set as property or as attribute. Perhaps other implementations will be able to distinguish those better. - Should take
renderInfoas argument to override the default one, including the ability to provide additional renderers.
Alternatives and Workarounds
.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels