How to do final state injection with Vue SRR with V8Js
问题 The Vue SSR guide is mainly written for running a nodejs server and just touches on using V8Js in the final chapter. It does have a section on final state injection but this doesn't work in the context of V8Js. How can we pass the Vuex state from server to client side when using V8Js? 回答1: First in entry-server.js we need to print not just the app, but also the Vuex state. import { createApp } from './app' new Promise((resolve, reject) => { const { app, router, store } = createApp() router