Skip to content

Instantly share code, notes, and snippets.

@arqex
Last active May 15, 2017 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arqex/8d1b2b1d886f7899d1fee8da9456e9ec to your computer and use it in GitHub Desktop.
Save arqex/8d1b2b1d886f7899d1fee8da9456e9ec to your computer and use it in GitHub Desktop.
update user reactio
freezer.on( 'user:update', update => {
var me1 = freezer.get().me;
me1.set({name: update.name});
if( update.hobbies ){
me1.set({hobbies: update.hobbies});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment