pinia-plugin-persistedstate
pinia-plugin-persistedstate copied to clipboard
[core] When using pinia-plugin-persistedstate, Pinia cannot hot reload
Are you using Nuxt?
- [ ] Check this box if you encountered the issue using Nuxt and the included module.
Describe the bug
I am using the Vue Vitesse template, and when I try to persist my store with pinia-plugin-persistedstate, it loses its hot reloading functionality. I'm not sure what is happening.
Reproduction
https://stackblitz.com/~/github.com/Ena-Heleneto/Ena-Pinia-Issue
System Info
System:
OS: Windows 11 10.0.26100
CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11400 @ 2.60GHz
Memory: 2.68 GB / 15.80 GB
Binaries:
Node: 22.12.0 - ~\AppData\Local\Volta\tools\image\node\22.12.0\node.EXE
Yarn: 1.22.19 - ~\AppData\Local\Volta\tools\image\yarn\1.22.19\bin\yarn.CMD
npm: 10.9.0 - ~\AppData\Local\Volta\tools\image\node\22.12.0\npm.CMD
pnpm: 9.15.0 - C:\Program Files\Volta\pnpm.EXE
Browsers:
Edge: Chromium (131.0.2903.112)
Internet Explorer: 11.0.26100.1882
Used Package Manager
pnpm
Validations
- [x] Follow our Code of Conduct
- [x] Read the Contributing Guide.
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [x] The provided reproduction is a minimal reproducible of the bug.
Additional note: To reproduce the issue, you can modify the /src/store/test.ts file during project startup to verify the hot reload effect.
I dont know much about this, we had issues with HMR long ago and I thought these resolved. 😭
If anyone has an idea and time to investigate on that, feel free to do so 🙏