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(store): ignore own mutations as they arrive from the listener #46

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

bjoerge
Copy link
Member

@bjoerge bjoerge commented Jan 10, 2025

Fixes an issue that caused mutations originating from the local machine to be applied on top of pending local changes

I'll add unit tests in a follow-up PR

The first commit adds autosaving to the playground (pnpm example:web). When it's turned on it demonstrates the issue fixed by the second commit.

Copy link

vercel bot commented Jan 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mutate-example-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 5:04pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
mutate-example-visual-editing ⬜️ Ignored (Inspect) Visit Preview Jan 10, 2025 5:04pm

Copy link

socket-security bot commented Jan 10, 2025

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@sanity/[email protected] None +2 126 kB rexxars
npm/[email protected] None 0 106 kB xnimorz

View full report↗︎

@bjoerge bjoerge merged commit b5ac022 into main Jan 10, 2025
9 checks passed
@bjoerge bjoerge deleted the fix-double-patches branch January 10, 2025 17:06
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.

2 participants