Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. export const test = (name) => async dispatch => {
  2. dispatch({type:types.TEST.PENDING})
  3. try{
  4. return dispatch({type:types.TEST.FULFILLED, payload:name})
  5. }catch(er){
  6. dispatch({type:types.TEST.REJECTED})
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement