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: v2
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 60b9c6d
🔍 Latest deploy log https://app.netlify.com/sites/pinia-official/deploys/677912aa932f710008402de2

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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