fix: resolveClient use id arg

This commit is contained in:
Guillaume Chau
2020-10-17 18:32:11 +02:00
parent cfbb9da5af
commit 4a9e959c06
@@ -48,7 +48,7 @@ export function useApolloClient<TCacheShape = any>(clientId?: ClientId): UseApol
if (currentApolloClient) {
return currentApolloClient
} else if (id) {
return resolveClientWithId(providedApolloClients, clientId)
return resolveClientWithId(providedApolloClients, id)
}
return resolveDefaultClient(providedApolloClients, providedApolloClient)
}