-
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
fix store subscription for prop in store
cases
#7071
Conversation
track store modifications in `has()` cases
amend
format
🦋 Changeset detectedLatest commit: 729b82e The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
it seems we don't need a changeset? |
fix compilation
commit: |
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
prettify
How does this work? To me it seems like moving the condition will cause it to subscribe less instead of more? And a changeset would be nice, you can add one with |
it's not moving the conditions around, instead it adds you maybe mistaken because I didn't squash the commits, the commits can be squashed automatically if this PR is merged according to this https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/configuring-commit-squashing-for-pull-requests |
and I'm having trouble running |
@revintec oh you're right, I was looking at only the diff of a single commit. Good find, thanks! I see that the problem also happens in v2 https://qwikdev-build-v2.qwik-8nx.pages.dev/playground/#f=Q0o0xubG2BKNDrzKpbBRAq3twSbZwg3VqM4Aec8KXFDWanLhbr3YQBoeiPq2GmI22ES9JGCBYgsxxC4xJQVYJxTBmypIjR9QKQNxQkZiMbAeAltd7RXs76cHaaFkplVqKIHFlYBFI0StZi2ijYTNGKBdWAwBimI3ArmZhTvfGFoitQxJyTcokTOaa2iRawA Do you feel up to also fixing it in the build/v2 branch and adding a test? The code is different, but it should be pretty easy to find where to apply this, and you can see other tests for it. You can use the playground code for the test. I'll add a changeset and merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, I ported it in a5972ba, so no PR needed. |
What is it?
Description
the code should be self explanatory
add the missing store subscription for
prop in store
casesChecklist
the fix is tested in local dev env. I haven't contributed to qwik for some time, so please notify me if this PR needs improvement, I'll change accordingly
pnpm change