vuejs / vuex

🗃️ Centralized State Management for Vue.js.
https://vuex.vuejs.org
MIT License
28.42k stars 9.58k forks source link

replace state #2126

Open sowhat13 opened 2 years ago

sowhat13 commented 2 years ago

Version

3.2.29

Steps to reproduce

this.$store.replaceState({})

When I use this function, it works but in vue devtools's store it doesn't change, there is still old store in there.

What is expected?

Store's state should be an empty object in vue devtools extension.

What is actually happening?

Old State is still there, not in app but in the extension its look like that.

ahmetilhn commented 2 years ago

Vue devtools may exhibit out-of-sync activity. Already in beta version. To prevent this, printing the state to the console after an action @sowhat13 @retzloff @blackpr @dcrall @aeby

bihongbin3027 commented 8 months ago

@sowhat13 Me too. May I ask if you have resolved it.

weier910 commented 8 months ago

你的邮件我已收到!