Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/vue-apollo-composable/src/useApolloClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const ApolloClients = Symbol('apollo-clients')
export function useApolloClient<TCacheShape = any> (clientId: string = null) {
const providedApolloClients: { [key: string]: ApolloClient<TCacheShape> } = inject(ApolloClients, null)
const providedApolloClient: ApolloClient<TCacheShape> = inject(DefaultApolloClient, null)

function resolveClient (clientId: string = null): ApolloClient<TCacheShape> {
let resolvedClient
if (clientId) {
Expand Down Expand Up @@ -35,4 +35,4 @@ export function useApolloClient<TCacheShape = any> (clientId: string = null) {
return resolveClient(clientId)
}
}
}
}
4 changes: 2 additions & 2 deletions packages/vue-apollo-composable/src/useMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function useMutation<
trackMutation(loading)
const error = ref<Error>(null)
const called = ref<boolean>(false)

const doneEvent = useEventHook<FetchResult<TResult, Record<string, any>, Record<string, any>>>()
const errorEvent = useEventHook<Error>()

Expand Down Expand Up @@ -81,4 +81,4 @@ export function useMutation<
onDone: doneEvent.on,
onError: errorEvent.on,
}
}
}