ionic-team / stencil

A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
https://stenciljs.com
Other
12.55k stars 784 forks source link

Component loaded twice in pre-rendered build #2472

Closed saiy2k closed 10 months ago

saiy2k commented 4 years ago

Stencil version:

 @stencil/core@1.12.2 

I'm submitting a:

[x] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior: When I load a pre-rendered page (https://farmers-app-cce97.web.app/profile/thozhan/), the following happens

Issue doesnt happen in localhost, only in pre-rendered build.

Expected behavior: First time invocation of component with the @Prop values as undefined shouldn't happen

Steps to reproduce: Look at log of this page: https://farmers-app-cce97.web.app/profile/thozhan/

Related code: Issue can be replicated by cloning this repo: https://github.com/saiy2k/stencil-lifecyle-prerender-issue, pre-rendering it and deploying it.

Other information:

peterpeterparker commented 4 years ago

Might be the same issue as the following which is also open: https://github.com/ionic-team/stencil/issues/2366

ionitron-bot[bot] commented 11 months ago

Thanks for the issue! This issue has been labeled as needs reproduction. This label is added to issues that need a code reproduction.

Please reproduce this issue in an Stencil starter component library and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.

If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.

For a guide on how to create a good reproduction, see our Contributing Guide.

ionitron-bot[bot] commented 10 months ago

Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Stencil, please create a new issue and ensure the template is fully filled out.

Thank you for using Stencil!