Should not process sub hydrate-components when rendering a component
eight04 opened this issue · 0 comments
eight04 commented
elderjs/src/utils/svelteComponent.ts
Line 39 in 6d2cd15
When rendering a component, sub hydrate-components are collected and added to the current page. Ideally, they should be processed after the entire HTML page is built. With the current code:
- The page may include a hydrated component which is actually not on the page. For example, when
Layout.svelte
doesn't outputtemplateHtml
. mountComponentsInHtml
is applied to the same string multiple times.