Skip to content

Instantly share code, notes, and snippets.

View bensgroi's full-sized avatar

Ben Sgroi bensgroi

  • CEI
  • Pittsburgh, PA
View GitHub Profile
@jasononeil
jasononeil / angularInjectionMiddleware.js
Last active October 5, 2021 00:02
Using angular dependency injection with react, redux, and redux-thunk
var thunkDispatcherRef = {
dispatch: function () {}
}
/**
* The angular injection middleware allows our redux actions to return functions.
*
* The function will be executed with regular angular dependency injection, allowing
* you to use angular services in Redux actions.
*