Created
December 17, 2021 14:57
-
-
Save Jamiewarb/f7ace181039c4f18bcc865b576821e3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { provideApolloClient } from '@vue/apollo-composable'; | |
export default defineNuxtPlugin(({ app }) => { | |
onGlobalSetup(() => { | |
provideApolloClient(app.apolloProvider?.defaultClient); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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