With vite-plugin-ssr we keep control over our app architecture and how our pages are rendered. This allows us to integrate Vuex simply by following its official SSR docs.

The initial state of the store is set on the server (its content is server-side rendered). This initial state is then passed onto the browser for hydration; we can use passToClient for that purpose.


Edit this page