nuxt3: After the browser refreshes, the middleware gets lost in localStorage #223
Closed
4 tasks done
Labels
🗿 duplicate
This issue or pull request already exists
Describe the bug
piniaPersistedstateOption in nuxt.config.ts
the pinia composables
the Problem code in middleware/effective.global.ts
Details of the issue
When the browser is not refreshed for routing jumps, middleware can get the data to be localStorage, but when I refresh the browser, middleware cannot get the data, I think it is a problem of data persistence
Reproduction
https://stackblitz.com/github/HW-maintenance/HW_maintenance_web/tree/pinia-plugin-persistedstate_nuxt_issues
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: