-
-
Save indigoviolet/cf62f23448f619276612ac29ccb33f4c to your computer and use it in GitHub Desktop.
fin blog embed
This file contains 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 { fetchLatestPosts } from '../actions/posts'; | |
// in some component... | |
dispatch(fetchLatestPosts); | |
// immediately: | |
// { type: 'Actions/Posts/FetchLatest', readyState: 'request' } | |
// after success: | |
// { | |
// type: 'Actions/Posts/FetchLatest', | |
// readyState: 'success', | |
// data: (some blob of json data from the api) | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment