Skip to content

Commit

Permalink
fix: don't add default client if not defined, closes #548
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Sep 30, 2019
1 parent 578cb9f commit 970dc2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apollo-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ export class ApolloProvider {
throw new Error('Options argument required')
}
this.clients = options.clients || {}
this.clients.defaultClient = this.defaultClient = options.defaultClient
if (options.defaultClient) {
this.clients.defaultClient = this.defaultClient = options.defaultClient
}
this.defaultOptions = options.defaultOptions
this.watchLoading = options.watchLoading
this.errorHandler = options.errorHandler
Expand Down

0 comments on commit 970dc2b

Please sign in to comment.