Skip to content

Instantly share code, notes, and snippets.

@georgesboris
Last active October 17, 2017 12:06
Show Gist options
  • Save georgesboris/df52825f9ea93f6d32a2fb808d507e7f to your computer and use it in GitHub Desktop.
Save georgesboris/df52825f9ea93f6d32a2fb808d507e7f to your computer and use it in GitHub Desktop.
firebase-app - putting it together 2
const { actions, executeAction } = require('./src/firebase-app');
const { updatePost } = actions;
const actionPayload = {
postId: 'post_123',
value: 'Post body with adjustments'
};
executeAction(updatePost, actionPayload)
.then(displaySuccess)
.catch(handleError);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment