Created
October 31, 2018 16:43
-
-
Save tfiechowski/182d5be060797e87a3b248af7d723a28 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
import api from './api'; | |
export function addPhotos() { /* ... */ } | |
export function fetchPhotos() { | |
return async function(dispatch) { | |
const { data: photos } = await api.fetchPhotos(); | |
dispatch(addPhotos(photos)); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment