From 08cd963d46c128d764fe50e8204f05bd2553b350 Mon Sep 17 00:00:00 2001 From: Will Goto Date: Thu, 3 Oct 2019 13:36:07 -0700 Subject: [PATCH] Do not use object deconstruction --- src/models/Model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/Model.js b/src/models/Model.js index ce72635..cffbd93 100644 --- a/src/models/Model.js +++ b/src/models/Model.js @@ -67,7 +67,7 @@ class Model extends Publisher { setState(nextState) { const { prev, next, diff } = this._diffState(nextState); - const prevState = { ...this.state }; + const prevState = Object.assign({}, this.state); if (diff) { // FOR LOGGING