webcomponents / webcomponents.org

Home of the web components community
https://www.webcomponents.org
Apache License 2.0
356 stars 95 forks source link

Hydrate the element page #1384

Closed justinfagnani closed 1 year ago

justinfagnani commented 1 year ago

This isn't strictly necessary yet, but will be as soon as we have interactive custom elements on the page.

I did a pretty manual thing here and serialized the data as JSON at the end of the response, then added another entrypoint that calls hydrate() with the data and page template.

cc @kevinpschaaf @augustjk for SSR patterns