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

feat: allow providing multiple apolloClients outside of setup/vue context in vue-apollo-composable #1340

Merged
merged 2 commits into from May 3, 2022

Conversation

lzurbriggen
Copy link
Contributor

What?

Why?

  • It was impossible to use global queries/mutations outside of setup

How?

  • useApolloClients.ts now maintains a currentApolloClients client dictionary instead of just a single client

I added an extra e2e test and a short section in the docs.

@lzurbriggen lzurbriggen changed the title vue-composable: allow providing multiple apolloClients outside of setup/vue context feat: allow providing multiple apolloClients outside of setup/vue context in vue-apollo-composable Mar 25, 2022
@lzurbriggen lzurbriggen marked this pull request as ready for review March 25, 2022 10:40
@dcress
Copy link

dcress commented Mar 31, 2022

@Akryum Could we get some 👀 on this? This would be VERY helpful for those of us using multiple clients.

@bianpratama
Copy link

@Akryum patiently wait for this 🙏🏻

@dcress
Copy link

dcress commented Apr 25, 2022

@Akryum 🙏

@Akryum Akryum merged commit 64491ce into vuejs:v4 May 3, 2022
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

Successfully merging this pull request may close these issues.

None yet

5 participants