From: Eduardo San Martin Morote Date: Wed, 31 Mar 2021 10:25:33 +0000 (+0200) Subject: docs: devalue X-Git-Tag: v2.0.0-alpha.10~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2033d2b56933fcbb6e6d8637201cd5e8b96b3b58;p=thirdparty%2Fvuejs%2Fpinia.git docs: devalue --- diff --git a/docs/ssr/index.md b/docs/ssr/index.md index e256e9f9..1da12082 100644 --- a/docs/ssr/index.md +++ b/docs/ssr/index.md @@ -49,7 +49,7 @@ export default { ## State hydration -To hydrate the initial state, you need to make sure the rootState is included somewhere in the HTML for Pinia to pick it up later on: +To hydrate the initial state, you need to make sure the rootState is included somewhere in the HTML for Pinia to pick it up later on. Depending on what you are using for SSR, you should escape the state for security reasons. We recommend using [@nuxt/devalue](https://github.com/nuxt-contrib/devalue) which is the used by Nuxt.js. ```js import { createPinia } from 'pinia' diff --git a/docs/ssr/nuxt.md b/docs/ssr/nuxt.md index 404fd5cd..7b316963 100644 --- a/docs/ssr/nuxt.md +++ b/docs/ssr/nuxt.md @@ -1,6 +1,6 @@ # Nuxt.js -Using Pinia with [Nuxt.js](https://nuxtjs.org/) is easier since Nuxt takes care of a lot of things when it comes to _server side rendering_. +Using Pinia with [Nuxt.js](https://nuxtjs.org/) is easier since Nuxt takes care of a lot of things when it comes to _server side rendering_. For instance, **you don't need to care about serialization nor XSS attacks**. ## Installation