Created
May 15, 2017 15:21
-
-
Save arqex/dc9afeb5b361191b823b4b6c0a1e1c33 to your computer and use it in GitHub Desktop.
update User reactions 3
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
const me = () => freezer.get().me; | |
freezer.on( 'user:update', update => { | |
me().set({name: update.name}); | |
if( update.hobbies ){ | |
me().set({hobbies: update.hobbies}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment