We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc814b9 commit 540d9dcCopy full SHA for 540d9dc
lib/vue-plugin.js
@@ -162,7 +162,9 @@ function prepare() {
162
this._apolloSubscriptions = [];
163
164
this.$apollo = new DollarApollo(this);
165
+}
166
167
+function launch() {
168
let apollo = this.$options.apollo;
169
170
if (apollo) {
@@ -194,6 +196,8 @@ module.exports = {
194
196
// Vue 2.x
195
197
beforeCreate: prepare,
198
199
+ created: launch,
200
+
201
destroyed: function() {
202
this._apolloSubscriptions.forEach((sub) => {
203
sub.unsubscribe();
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "vue-apollo",
3
- "version": "1.0.0-beta7-1",
+ "version": "1.0.0-beta7-2",
4
"description": "Vue apollo integration",
5
"main": "index.js",
6
"scripts": {
0 commit comments