vikejs / vike-vue

🔨 Vue integration for Vike
https://vike.dev/vike-vue
MIT License
41 stars 6 forks source link

using pinia-plugin-persistedstate with js cookie #140

Closed u007 closed 4 months ago

u007 commented 4 months ago

hi,

i realise when using js cookie, it does reflect on browser side calling to server as i can see the headers is set. but it does not seems to show on server side when rendering.

cookie storage: https://github.com/u007/vike-admin/blob/main/store/storage.cookie.ts

the pinia using it: https://github.com/u007/vike-admin/blob/main/store/alert.ts

u007 commented 4 months ago

on browser end:

Screenshot 2024-06-23 at 2 44 09 AM

on server side:

Screenshot 2024-06-23 at 2 44 33 AM

error was set to BBB, but server is always showing undefined for entire cookie

brillout commented 4 months ago

Hydration errors are usually user land issues, and these 404 don't seem to be related.

Closing because it isn't clear from reading your post whether your issues are user land ones or vike-vue related.

On Vike's GitHub the expectation generally is that you follow https://brillout.github.io/rules, see https://vike.dev/faq#how-can-i-reach-out-for-help.

Feel free to re-create one new post per issue and only if you have confidence it's related to Vike / vike-vue.