Skip to content
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

@vue/apollo-composable currently only works with @vue/composition-api <= 0.5.0 #1009

Closed
sadjow opened this issue Jul 3, 2020 · 8 comments
Closed

Comments

@sadjow
Copy link

sadjow commented Jul 3, 2020

Describe the bug
I was trying to follow the setup instruction and I noticed that the last release from @vue/apollo-composable was 3 months ago. When trying to use it it was impossible to use the composition function. it was not returning anything neither any error.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the @vue/apollo-composable setup instruction(using latest version)
  2. try to use a query
  3. nothing will happen

Expected behavior
The graphql query should be executed.

Versions
vue: 2.6.11
vue-apollo: 3.0.3
apollo-client: 2.6.10
@vue/apollo-composable: 4.0.0-alpha.8

@vue/composition-api: 1.0.0-beta.1 (latest, do not work)
@vue/composition-api: >= 0.6.x (do not work)
@vue/composition-api: <= 0.5.x (works, no bug)

Additional context
No error is triggered, it just does not execute the query.

@plmercereau
Copy link

Exact same problem here, downgraded to @vue/composition-api@0.5.0 for now :/

@Qubeo
Copy link

Qubeo commented Jul 3, 2020

I think #1000 should be fixing this, but not accepted yet :/ @Akryum

@Loremaster
Copy link

Loremaster commented Jul 8, 2020

Confirm. It's an issue. Any updates on merging related PR @Akryum?

@DarkLite1
Copy link

I'm so glad I found this workaround. Lost a whole day on tinkering with my setup thinking it was me.

@tcastelly
Copy link

tcastelly commented Jul 14, 2020

Thanks for the workaround, downgrade @vue/composition-api has some side effects, but it's warning ... it should be OK.

vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in data(): "TypeError: Cannot convert undefined or null to object"

edit: The watch in 0.5.x is immediate by default. It is not in the 0.6.0. Just to be care full :)

@kahirokunn
Copy link
Contributor

This pull request is awesome!
I need it!

@heavenkiller2018
Copy link

heavenkiller2018 commented Jul 28, 2020

Exact same problem here, found this workaround. Lost a whole day

@sadjow
Copy link
Author

sadjow commented Aug 7, 2020

I am closing this issue because I just verified that the latest version of @vue/apollo-composable 4.0.0-alpha.10 with the latest version of @vue/composition-api 1.0.0-beta.6 is working nicely. So, this bug is not happening anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants