Skip to content

Instantly share code, notes, and snippets.

@kellyrmilligan
Created April 26, 2017 15:22
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 kellyrmilligan/6111abfe4c42fcb890a5ae2375548bdc to your computer and use it in GitHub Desktop.
Save kellyrmilligan/6111abfe4c42fcb890a5ae2375548bdc to your computer and use it in GitHub Desktop.
reactRouterFetch(routeConfig, location, { dispatch })
.then((results) => {
this.setState({
isAppFetching: false
})
})
.catch((err) => {
this.setState({
isAppFetching: false,
appFetchingError: err
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment