Skip to content

Fix HMR state reset for objects stores (#2931) #2958

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

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

Conversation

Dantescur
Copy link

@Dantescur Dantescur commented Mar 28, 2025

Hey @posva! Fixed #2931 so HMR doesn’t reset object state in stores. Tweaked _hotUpdate to keep values. Tests pass and it worked ok.

Copy link

netlify bot commented Mar 28, 2025

Deploy Preview for pinia-official canceled.

Name Link
🔨 Latest commit 70633dd
🔍 Latest deploy log https://app.netlify.com/sites/pinia-official/deploys/67e64bd139d66d0008d0b07a

@github-project-automation github-project-automation bot moved this to 🆕 Triaging in Pinia Roadmap Mar 28, 2025
@posva posva moved this from 🆕 Triaging to 📋 Backlog in Pinia Roadmap Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

Successfully merging this pull request may close these issues.

Plain objects states are reset during HMR
1 participant