From 1436cc5e10cacaa1affdd1318964b950f92c9ea5 Mon Sep 17 00:00:00 2001 From: Alexandre Bonaventure Geissmann Date: Wed, 2 Aug 2017 06:20:07 -0400 Subject: [PATCH] fix: clone options to avoid sharing state between multiple instances (#96) see (#95) --- src/smart-apollo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smart-apollo.js b/src/smart-apollo.js index 3b769b7..54be721 100644 --- a/src/smart-apollo.js +++ b/src/smart-apollo.js @@ -9,7 +9,7 @@ class SmartApollo { constructor (vm, key, options, autostart = true) { this.vm = vm this.key = key - this.options = options + this.options = Object.assign({}, options) this._skip = false this._watchers = []