Created
August 22, 2016 09:42
-
-
Save jacobp100/4858d336538c5e20c755dadba3c9d7dd to your computer and use it in GitHub Desktop.
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 setCats = () => async (dispatch, getState) => { | |
const cats = await dispatch(fetchJson('GET', '/cats', filter)); | |
dispatch({ type: SET_CATS, cats }); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment