Created
April 17, 2016 23:56
-
-
Save JonathanZWhite/2df1886dc678bde8f9facea948c0dd82 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let store = { | |
... | |
update: function(hash, data) { | |
if (!this._users[hash]) this._initializeUserState(hash) | |
console.log('๐ => PREVIOUS STATE') | |
console.log(this.getState(hash)) | |
this._users[hash] = _.merge(this._users[hash], data) | |
console.log('๐ => NEXT STATE') | |
console.log(this.getState(hash)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment