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

fix: async subscription do not run when mutate state synchronously after patch #2870

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from

Conversation

yangmingshan
Copy link

Fix #992

I run into same issue when I porting Pinia to Vue Mini, and I found another debugger issue for sync subscription (please see the test).

I managed a way to fix them, the fix may have extra memory / performance costs, I didn't do any measurements. But I used it in Pinia for Vue Mini anyway.

Copy link

netlify bot commented Jan 4, 2025

Deploy Preview for pinia-official canceled.

Name Link
🔨 Latest commit 7844dba
🔍 Latest deploy log https://app.netlify.com/sites/pinia-official/deploys/67bf2722a0fab8000861ec9e

Copy link

netlify bot commented Jan 4, 2025

Deploy Preview for pinia-playground ready!

Name Link
🔨 Latest commit 60b9c6d
🔍 Latest deploy log https://app.netlify.com/sites/pinia-playground/deploys/677912aa1a67c50008c55c37
😎 Deploy Preview https://deploy-preview-2870--pinia-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

posva commented Jan 4, 2025

Thanks! I will take a look when I can

@posva posva changed the base branch from v2 to v3 February 12, 2025 08:51
@yangmingshan
Copy link
Author

This PR is now based on v3 and can be merged

Does v2 need this fix? If so, I can open another PR to fix v2

@posva
Copy link
Member

posva commented Feb 26, 2025

Thanks! I think it's fine to keep this for v3 only so don't worry about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🧑‍💻 In progress
Development

Successfully merging this pull request may close these issues.

$subscribe miss mutations with type of direct immediately afterpatch mutations
2 participants