Skip to content

Commit 75fe94b

Browse files
committed
Fixed issue with the usage of different clients, and solve issue while building.
1 parent f091351 commit 75fe94b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

graphql-query.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ <h1>[[result.block.title]]</h1>
364364
}
365365

366366
_getClient() {
367-
return window.Apollo.client;
367+
return window.Apollo.namedClient[this.clientName]
368368
}
369369

370370
/**

webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const BabiliPlugin = require('babili-webpack-plugin');
44

55
module.exports = {
66
entry: {
7-
'apollo-client': './apollo-client.js',
8-
'apollo-client-subscription': './apollo-client-subscription.js',
9-
'apollo-client-subscription-file-upload': './apollo-client-subscription-file-upload.js'
7+
'apollo-client': path.resolve(__dirname, 'apollo-client.js'),
8+
'apollo-client-subscription': path.resolve(__dirname, 'apollo-client-subscription.js'),
9+
'apollo-client-subscription-file-upload': path.resolve(__dirname, 'apollo-client-subscription-file-upload.js')
1010
},
1111
output: {
1212
library: 'Apollo',

0 commit comments

Comments
 (0)