Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Should not process sub hydrate-components when rendering a component #259

@eight04

Description

@eight04

const innerHtml = mountComponentsInHtml({

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:

  1. The page may include a hydrated component which is actually not on the page. For example, when Layout.svelte doesn't output templateHtml.
  2. mountComponentsInHtml is applied to the same string multiple times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions