Skip to content

Instantly share code, notes, and snippets.

@smashercosmo
Created June 28, 2016 16:52
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smashercosmo/7dccd4822b555c57bb5807a4ba6052da to your computer and use it in GitHub Desktop.
Save smashercosmo/7dccd4822b555c57bb5807a4ba6052da to your computer and use it in GitHub Desktop.
const store = createStore(
reducer,
applyMiddleware(thunk.withExtraArgument(analytics))
)
// later
function fetchUser(id) {
return (dispatch, getState, analytics) => {
analytics.track(...);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment