From 6feee736b84333fdbbc079cae9859ea0cb470010 Mon Sep 17 00:00:00 2001 From: Cue <1493221+cuebit@users.noreply.github.com> Date: Sat, 9 May 2020 06:24:50 +0100 Subject: [PATCH] fix(model): prevent `_store` from becoming a cyclic object value. --- src/model/Model.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/model/Model.ts b/src/model/Model.ts index 567490b..f400b8a 100644 --- a/src/model/Model.ts +++ b/src/model/Model.ts @@ -61,6 +61,10 @@ export class Model { this.$boot() this.$fill(attributes, options) + + // Prevent `_store` from becoming cyclic object value and causing + // v-bind side-effects by negating enumerability. + Object.defineProperty(this, '_store', { enumerable: false, writable: true }) } /**