Skip to content

prerender: rehydrated components (pages) added twice to the DOM #2366

@peterpeterparker

Description

@peterpeterparker

Stencil version:
"stencil/core": "^1.12.3"

I'm submitting a:
[X] bug report

Current behavior:
When I upgrade my apps to Stencil v1.12.3 and run a prerender build (npm run build --prerender), the components (pages) are added twice to the DOM!

I can confirm that if I run npm run start these are correctly added only once.

Not sure if the problem is linked to Stencil or the Ionic router, which I'm using.

Expected behavior:
Component added only once to the DOM.

Steps to reproduce:

I provide a sample repo.

git clone https://github.com/peterpeterparker/twice-component
npm run build

and then servewww with a local web server.
Screenshot:

Capture d’écran 2020-04-13 à 09 54 57

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions