Skip to content

Not getting HMR to work with Vite, Vue3 and Pinia #1290

Discussion options

You must be logged in to vote

I've noticed this behavior with Pinia on a few projects using Vue 3, Typescript, and Quasar 2 (2.10.2 right now). I also tried this solution from Pinia and have not had Vite HMR picking up state changes made in code. Definitely frustrating, and I'll be watching for any discussion on this.

After looking into this a bit further, this answer from StackOverflow cross-references #843 which states in the comment by @posva on May 13th:

Yes, the idea is that adding new state should not reset the other values of the state so existing state values are always preserved. This also means that you can change a value, comment the line and save (this removes the state property) then un comment and save …

Replies: 8 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@bhishekprajapati
Comment options

@kossa
Comment options

Comment options

You must be logged in to vote
1 reply
@daniel-n-dream
Comment options

Comment options

You must be logged in to vote
2 replies
@bhishekprajapati
Comment options

@pegiadise
Comment options

Comment options

You must be logged in to vote
1 reply
@denglouhen
Comment options

Answer selected by posva
Comment options

You must be logged in to vote
1 reply
@GianpaoloPascasi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@GianpaoloPascasi
Comment options

Comment options

You must be logged in to vote
1 reply
@GianpaoloPascasi
Comment options

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