-
-
Notifications
You must be signed in to change notification settings - Fork 522
Description
I'm having problem with SSR rendering of my project, which is using Vuetify:
-
Some of the components rely on existance of
$vuetifyproperty in the instance of Vue inherited fromVue.prototype(e.g., VToolbar).
Obviously, createFakeInstance doesn't merge$vuetifyfromVue.prototypeinto fake instance, causing rendering error in prefetchAll.
Unfortunatelly there is no way to supress printing that error to the console. -
Some components are using
provideproperty of Vue component like in Themeable.
createFakeInstancealso ignoresprovide/injectdefinitions on component. So there is another rendering error.
The quick but very dirty solution for problems mentioned above is to allow to configure COMPONENT_BLACKLIST, for example, using options for install method of vue-apollo/ssr plugin, or by providing options to the prefetchAll method.
The less hacky solution for the first problem is to provide a list of Vue.prototype properties that should be inherited from Globals.Vue upon fakeInstance creation. Either with Vue.use(ApolloSSR, { inheritedProperties: ['$vuetify'] }), or in prefetchAll method.
For the second problem, I wasn't able to fix it in any way.