-
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
[🐞] useComputed$ needs to do an equals check #4918
Comments
Start a new pull request in StackBlitz Codeflow. |
Thanks for the report @FlatMapIO ! Reviewed it, seems like it's worth investigating further |
Same behavior with v1.5.7. |
We should check this after v2 signals implementation |
Thank you for the clear reproduction! This should be fixed in v2 release, so I am going to close that issue |
Which component is affected?
Qwik Runtime
Describe the bug
Currently, computed does not do an equals check, so even if the result is always true, it will still trigger the task to rerun. This is clearly not the expected behavior. I hope useComputed can add an equals option and set it to Object.is, otherwise it seems pointless for it to exist.
Reproduction
https://stackblitz.com/edit/qwik-starter-2t6x22?file=src%2Froutes%2Findex.tsx
Steps to reproduce
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: