Use of ssrContext with Vuex store export



  • The documentation mentions that you have access to the ssrContext in two places, preFetch and plugins. However, I’ve noticed a third place:

    export default function (/* { ssrContext } */) {
    const Store = new Vuex.Store({
    modules: {
    example,
    }
    });

    return Store
    }

    So, I’m just curious… What’s an example of how one might make use of ssrContext there?