-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[🐞] Signals don't trigger rerender with some problematic JSX markup #5782
Comments
Thank you for the repro, that indeed looks like a bug. |
Let me take a look. |
Since we have v2 well underway and it rebuilds some of this code, let's wait until we can test this with v2 alpha. |
Also I want to point out another related issue with the example app we get after running |
* test(v2): test for issue #5782 * fixup * fixup --------- Co-authored-by: Miško Hevery <[email protected]>
I did a double check with the latest v2 code and it's working fine. |
Which component is affected?
Qwik Runtime
Describe the bug
I was randomly writing some edge case code (orphaned signals in this case) to see what happens when I first encountered this bug. Trying to reproduce the bug in the playground later revealed that this bug depends on the returned JSX markup.
In the following reproduction,
app.tsx
exports two componentsV1
andV2
, which have different JSX markup (V1
's children are nested in extrap
's) but are otherwise the same.Expected behavior: apart from the visual differences (from not having extra
p
's), both components should show the same behavior, that is:++
and--
buttons should always increment and decrement the counter (both parent's and child's), andChild
rerendering triggers itsuseTask$
.Actual behavior: Once
V2
'sChild
unmounts for the first time, the parent counter gets stuck and no longer updates.V1
does not show this behavior and works as expected.Reproduction
https://qwik.builder.io/playground/#v=1.4.2&f=5Va9DoIwEN55ClwICWAENgKdfATD7oA4kGA0xoH03b3eHW1BEkEdSFz4aa%2FXu%2B%2B7PztoklT7Y0dNaNovfmJhY%2BpoeU5cEQ5lDChMhhbtY3mvrnumrjBX%2BzswuBeDijnYGx6zBc%2Ftg0q3LX46NrcKpfqAZmAuBkscckxv78hSuHgLiX%2Bv6BlFUkSRHon4cDeSksuUBoEUQTBUqpJsrom9y6QNHN%2BMlqQ4tHXdVK92j456npsTemBiodySEFHkDlsEsUTJP%2BI5WTXPn7M7ze03zP6YxgUkMneOQxj2%2BNm0dUiBzJA6%2BMw443N%2B0YwnBKiZJHiCWT1yg3IaoM1Zl1Z8uAll8U4NAOtUGyri7HbU8R4j8789KYlT41kZhyoTjTVraU3QBnRnUr%2FJ%2B0b1BA
Steps to reproduce
No response
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: