Static GitHub Issues

[643] date type is not serialized properly

prev: after ssr
next: Docs misleading about extending routes

currently when date is stored on store, the date is directly JSON.stringify and loss the type info, require special care (like manually cast before using the variable) in every related function.

Could the date being properly serialized before sending to client ? or let user provide a serialize/deserialize function, and make storing custom type be possible ?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c560">#c560</a>)</em></sub></div>