build: update deps a bit
This commit is contained in:
+4
-6
@@ -6,9 +6,7 @@ import {
|
||||
import { createHttpLink } from 'apollo-link-http'
|
||||
import { setContext } from 'apollo-link-context'
|
||||
import { provide } from '@vue/composition-api'
|
||||
import { onGlobalSetup } from 'nuxt-composition-api'
|
||||
import { DefaultApolloClient } from '@vue/apollo-composable'
|
||||
import Vue from 'vue'
|
||||
import introspectionQueryResultData from '../fragmentTypes.json'
|
||||
import { useAuth } from './auth'
|
||||
|
||||
@@ -54,8 +52,8 @@ const instance = new ApolloClient({
|
||||
}
|
||||
})
|
||||
|
||||
Vue.use(() => {
|
||||
onGlobalSetup(() => {
|
||||
export default function ({app}) {
|
||||
app.setup = () => {
|
||||
provide(DefaultApolloClient, instance)
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user