prazdevs/pinia-plugin-persistedstate

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

Closed this issue · 2 comments

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

This one scratched my head for a couple of hours.

Jao8 commented

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.