Skip to content

Commit

Permalink
Merge pull request #58 from wgoto/wg-fix
Browse files Browse the repository at this point in the history
Do not use object deconstruction
  • Loading branch information
wGoto authored Oct 3, 2019
2 parents be9ff82 + 08cd963 commit 3d9257f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d9257f

Please sign in to comment.