Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@indigoviolet
Created October 4, 2017 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indigoviolet/cf62f23448f619276612ac29ccb33f4c to your computer and use it in GitHub Desktop.
Save indigoviolet/cf62f23448f619276612ac29ccb33f4c to your computer and use it in GitHub Desktop.
fin blog embed
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