prazdevs / pinia-plugin-persistedstate

💾 Configurable persistence and rehydration of Pinia stores.
https://prazdevs.github.io/pinia-plugin-persistedstate/
MIT License
2.06k stars 119 forks source link

Documentation: Add notice that cookie size is limited to 4096 bytes #341

Open Wafje opened 1 day ago

Wafje commented 1 day ago

Clear and concise description of the problem

Using Nuxt, pinia-plugin-persistedstate defaults to Cookies. As cookie size is limited to 4096 bytes; when the store contains to much information, no cookie will be set.

Suggested solution

Add notice to documentation about this limitation

Alternative

No response

Additional context

No response

Validations

Wafje commented 1 day ago

This one scratched my head for a couple of hours.

Jao8 commented 11 hours ago

That would be great! I lost a lot of time trying to understand why a specific store wasn't persisting, and if it hadn't been for this issue, I would still be pursuing it.