Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐞] V2 - Qwik duplicates the content of the conditional rendering #7203

Open
devcaeg opened this issue Dec 28, 2024 · 0 comments
Open

[🐞] V2 - Qwik duplicates the content of the conditional rendering #7203

devcaeg opened this issue Dec 28, 2024 · 0 comments
Assignees

Comments

@devcaeg
Copy link

devcaeg commented Dec 28, 2024

Which component is affected?

Qwik Runtime

Describe the bug

In Qwik V2 there is a bug in certain conditional renderings. Qwik duplicates the content of the conditional rendering.

Reproduction

https://qwikdev-build-v2.qwik-8nx.pages.dev/playground/#v=2.0.0-alpha.4&f=Q0o05pbm2BKNDqL21VGgtGECCQ1wrNsi1epKjkoKNQpKTmDSWclOA8gEuo%2B8lgxMAZJiUOCAWy1gq22VIBwlRNVdjexIGACp1QNmc2ABbqsAdKI1XK5Ws9YuGFwDKjjCG0Qwi6lhmRN2y5xoYpkzdsucEZbB0hA4SKG8amRDbMEBpGAPTMrAwgEYJgV2wFSmYKUArJNT04BVQ0otTn3AWIfqA3qPBH3OcH1AlxKnTxFVn6NCfhEoTLFoRm8O4y7fDC2RWvCklG8oGWi0dKNF6QYA

Steps to reproduce

In this example it is clear, you can see how the paragraph “A or B” is duplicated, when the conditional rendering is changed.

This paragraph should only be displayed once if the value of “type” is “A” or “B”.

System Info

npmPackages:
    @qwik.dev/core: 2.0.0-alpha.4
    @qwik.dev/router: 2.0.0-alpha.4
    typescript: 5.7.2
    undici: 7.0.0 
    vite: 6.0.1

Additional Information

No response

@devcaeg devcaeg added STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working labels Dec 28, 2024
@Varixo Varixo self-assigned this Dec 28, 2024
@Varixo Varixo added COMP: runtime VERSION: upcoming major and removed STATUS-1: needs triage New issue which needs to be triaged labels Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants