Facilitates SSR of Svelte-based web components (custom elements) using the light DOM via a new hydratable option which will include special markers to slots. These markers allow svelte-retag to recover slots from a pre-rendered Svelte web component which then in turn allows it to initialize the provided/embedded Svelte component and make it interactive again on the client-side.
Note: While this allows pre-rendering of the component, it doesn't restore complete state unless that state is already encoded in via the custom element attributes or light DOM slots (both named and default slots).
Facilitates SSR of Svelte-based web components (custom elements) using the light DOM via a new
hydratable
option which will include special markers to slots. These markers allowsvelte-retag
to recover slots from a pre-rendered Svelte web component which then in turn allows it to initialize the provided/embedded Svelte component and make it interactive again on the client-side.Note: While this allows pre-rendering of the component, it doesn't restore complete state unless that state is already encoded in via the custom element attributes or light DOM slots (both named and default slots).