Closed dchenk closed 3 years ago
Fixes https://github.com/frandiox/vite-ssr/issues/97
Instead of double JSON-stringifying, which can add a lot of \ characters to escape double quotes (because JSON tends to have lots of double quotes, for every property name and string), serialize state as a JSON object wrapped in single quotes.
\
Thanks @dchenk !
Fixes https://github.com/frandiox/vite-ssr/issues/97
Instead of double JSON-stringifying, which can add a lot of
\
characters to escape double quotes (because JSON tends to have lots of double quotes, for every property name and string), serialize state as a JSON object wrapped in single quotes.