pinia-plugin-persistedstate icon indicating copy to clipboard operation
pinia-plugin-persistedstate copied to clipboard

[core] When using pinia-plugin-persistedstate, Pinia cannot hot reload

Open Ena-Heleneto opened this issue 1 year ago • 2 comments

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

Ena-Heleneto avatar Jan 22 '25 08:01 Ena-Heleneto

Additional note: To reproduce the issue, you can modify the /src/store/test.ts file during project startup to verify the hot reload effect.

Ena-Heleneto avatar Jan 22 '25 08:01 Ena-Heleneto

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 🙏

prazdevs avatar Jun 28 '25 13:06 prazdevs