Skip to content

Using @vue/apollo-option with Vue 3 #1175

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

Closed
entermix opened this issue Mar 24, 2021 · 3 comments
Closed

Using @vue/apollo-option with Vue 3 #1175

entermix opened this issue Mar 24, 2021 · 3 comments

Comments

@entermix
Copy link

entermix commented Mar 24, 2021

Describe the bug
I am confused. Please tell me if the @vue/apollo-option package is ready to work with Vue 3?

From the docs:

This library integrates apollo (opens new window) in your Vue (opens new window) components with declarative queries. Compatible with Vue 2.0+ and 3.0+.

The documentation describes how to integrate with Vue 2. I tried to integrate with Vue 3, but nothing worked. There is already a similar topic here, but the question remains unanswered.

Please note the question is about @vue/apollo-option, not @vue/apollo-composable

To Reproduce
https://codesandbox.io/s/priceless-thunder-3om5t

Expected behavior
Correct integration with Vue 3 (?)

Versions
vue: 3.0.0
@apollo/client: ^3.3.13
@vue/apollo-option: 4.0.0-alpha.11

Additional context
https://v4.apollo.vuejs.org/migration/#installation
https://v4.apollo.vuejs.org/guide-option/setup.html

@anli-xsigns
Copy link

I think it is not ready (or even intended or necessary) to be used in vue 3. In the example the code is still Vue.use which is deprecated in Vue 3 -> https://v3.vuejs.org/guide/migration/global-api.html#a-note-for-plugin-authors

@mooori
Copy link

mooori commented Apr 23, 2021

@Akryum
Copy link
Member

Akryum commented Jul 4, 2021

Now available with @vue/apollo-options and @vue/apollo-components v4.0.0-alpha.13

@Akryum Akryum closed this as completed Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants