Skip to content

Instantly share code, notes, and snippets.

@Jamiewarb
Created December 17, 2021 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jamiewarb/f7ace181039c4f18bcc865b576821e3c to your computer and use it in GitHub Desktop.
Save Jamiewarb/f7ace181039c4f18bcc865b576821e3c to your computer and use it in GitHub Desktop.
import { provideApolloClient } from '@vue/apollo-composable';
export default defineNuxtPlugin(({ app }) => {
onGlobalSetup(() => {
provideApolloClient(app.apolloProvider?.defaultClient);
});
});
@Jamiewarb
Copy link
Author

Jamiewarb commented Dec 17, 2021

Looking for how to migrate this to Nuxt 2 + Bridge, or ideally the Nuxt 3 plugin syntax.

I found this that mentions the same problem, though they don't specify if they found a solution https://github.com/nuxt/framework/issues/1017

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