-
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
[🐞] when passing a "string" key props the symbol output is different which seems to impact reactivity #6819
Comments
Could offer a minimum duplicated ? |
@JerryWu1234 What do you mean? |
You offered a whole project, Could you provide the smallest reproducible repository? |
@JerryWu1234 it's ok, Steff already provided the playground with the issue |
So the _restProps is here qwik/packages/qwik/src/core/state/store.ts Lines 78 to 86 in 22f54c5
|
Which component is affected?
Qwik Optimizer (rust)
Describe the bug
It seems that Symbols output are different when passing a "string" as a key.
Which might affect reactivity when using signals within the component.
The symbol will convert to:
However if the component look as follow:
The symbol output looks as follow:
Reproduction
https://github.com/steffanek/qwik-ui/tree/pr-toggle-togglegroup
Steps to reproduce
/packages/kit-headless/src/components/toggle/toggle.tsx
and uncomment line 39:// 'bind:pressed': givenValueSig,
To quickly see the different symbol output see this playground: https://qwik.dev/playground/#f=Q0o0psbwRAOOlmpQEVpQ7J%2BmoxAY5KOjAKmB8aUheMSo6CClH6BOYEbQQVTiYCa4eCQmQYLdEpKfnp6TCnYPMBih7rJRhzRF1O0U1MCBqpSRmJOvZG%2BlkJQPrPcT88A%2BRI0IiEFAMxDus0Ey3E5DA9ysgccTRBeIBTPeClhWlqXmgSs%2BoH90wFJ6enoQt4BNAQrVAq0AmwR0AHpsQ1RCIwbkPVsliJASVKwa1bhaqDC4pWVbDTZWD8yByMDjGBTOsCiHt9OgUQ3EBLM4NCTsMkAJzkYfytMczdhDMGMDAA
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: