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

Skip to content

bug: SSR. Slow to hydrate component results in duplicate nodes #6324

@johnjenkins

Description

@johnjenkins

Prerequisites

Stencil Version

latest

Current Behavior

  • Setup a component with complex property (not an attribute),
  • SSR the property (e.g. using beforeHydrate)
  • Take too long to 'hydrate' i.e. setting the property Client-Side (> 300ms)

This setup results in nodes added via SSR being duplicated on the client.

Image

Expected Behavior

Nodes should not be duplicated

System Info

Steps to Reproduce

https://github.com/johnjenkins/stencil-start-m6opf9rg/

pnpm i
pnpm build
pnpm express

Code Reproduction URL

https://github.com/johnjenkins/stencil-start-m6opf9rg/

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: ValidatedThis PR or Issue is verified to be a bug within StencilHelp Wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions