How to use the vue-apollo/ssr.serializeStates function in vue-apollo

To help you get started, we’ve selected a few vue-apollo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github universal-vue / uvue / packages / @uvue / core / plugins / apollo.js View on Github external
async sendSSRData({ app, ssr, error, isServer }) {
    if (isServer) {
      try {
        ssr.bodyAdd = ``;
      } catch (err) {
        error(err);
      }
    }
  },
};