pinia-plugin-persistedstate
pinia-plugin-persistedstate copied to clipboard
[core] Circular references
Clear and concise description of the problem
Is there any way custom circular references persist ?
Suggested solution
custom serialization , or exclude circular key
Alternative
No response
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guide.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Hi, the reason circular references arent managed is mostly due to serialization being handled by JSON.stringify/JSON.parse and it doesnt work with circular references. There is probably a workaround using either a custom serializer or the hooks to restore the references ?
Marking this as stale, feel free to reopen with more info if the issue is still existing!