Created
October 4, 2018 20:51
-
-
Save corsonknowles/ac2a140436dc0de7d34f12d6d7627769 to your computer and use it in GitHub Desktop.
Put this in your Actions folder and import it to all your Redux Action Creators
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
export const RECEIVE_ERRORS = 'RECEIVE_ERRORS'; | |
export const CLEAR_ERRORS = 'CLEAR_ERRORS'; | |
export const receiveErrors = errors => ({ | |
type: RECEIVE_ERRORS, | |
errors, | |
}); | |
export const clearErrors = () => ({ | |
type: CLEAR_ERRORS, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment