-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Description
In the following text from the SSR docs:
Because the hydrate function above does not descend into shadow roots, it only works on one scope of the DOM at a time. To hydrate LitElement shadow roots, load the lit/hydrate-support.js module, which installs support for LitElement automatically hydrating itself when it detects it was server-rendered with declarative shadow DOM.
The module lit/hydrate-support.js is referenced. However, in the example below, this module is not loaded. Attempting to load this module results in the error: Package subpath './hydrate-support.js' is not defined by "exports
It is also unclear from the docs whether hydration is explicitly needed for LitElements as it is for templates or whether hydration is NOT explicitly needed. Confusion arises due to the text "installs support for LitElement automatically hydrating itself when it detects it was server-rendered with declarative shadow DOM".
Please clarify.