Skip to content

Instantly share code, notes, and snippets.

@arqex
Created May 15, 2017 15:21
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/dc9afeb5b361191b823b4b6c0a1e1c33 to your computer and use it in GitHub Desktop.
Save arqex/dc9afeb5b361191b823b4b6c0a1e1c33 to your computer and use it in GitHub Desktop.
update User reactions 3
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