-
-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.0.0-alpha.16 breaks on ssr #1297
Comments
For me it works, but I'm using only Composition API and at the end instead of provideApolloClient(apolloClient)
nuxt.vueApp.use(apolloProvider)
nuxt.vueApp.use(VueApolloComponents) I use provideApolloClient(apolloClient)
nuxt.provide("apollo", { DefaultApolloClient, apolloClient }) and works well |
I actually have the same issues with the options API, on the SSR render trying to access $apollo results in an undefined error. For example:
or
Downgrading from 4.0.0-alpha.16/18 to v15 works. Reproduce:
|
Problematic part in code:
The destroy gets called in the .then statement, and it causes $apollo to be unavailable. PR: #1380 |
Describe the bug
Using nuxt3, added as a plugin:
With
4.0.0-alpha.15
it worked fine, updated to4.0.0-alpha.16
, got on ssr page loading:Place in server.mjs it refers to is this function (at the bottm):
To Reproduce
Steps to reproduce the behavior:
Expected behavior
it works
Versions
"@vue/apollo-components": "^4.0.0-alpha.16",
"@vue/apollo-composable": "^4.0.0-alpha.16",
"@vue/apollo-option": "^4.0.0-alpha.16",
"@vue/apollo-ssr": "^4.0.0-alpha.16",
"nuxt3": "^3.0.0-27307420.6a25d3e"
The text was updated successfully, but these errors were encountered: