Skip to content

Instantly share code, notes, and snippets.

@alexfedoseev alexfedoseev/CommentsConstants.jsx Secret
Last active Aug 29, 2015

Embed
What would you like to do?
Redux: Constants
/* app/bundles/app/constants/CommentsConstants.jsx */
// Action type: new comment was POSTed to API (we're waitnig for response here)
export const COMMENT_ADD_REQUESTED = 'COMMENT_ADD_REQUESTED';
// Action type: new comment was successfully created
export const COMMENT_ADD_SUCCEED = 'COMMENT_ADD_SUCCEED';
// Action type: new comment was rejected by API
export const COMMENT_ADD_FAILED = 'COMMENT_ADD_FAILED';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.