Last active
October 17, 2017 12:06
-
-
Save georgesboris/df52825f9ea93f6d32a2fb808d507e7f to your computer and use it in GitHub Desktop.
firebase-app - putting it together 2
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 { 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