Skip to content

Instantly share code, notes, and snippets.

@briankadar
briankadar / hoa-vs-middleware.md
Last active April 21, 2016 17:49
Redux middleware vs. Higher order actions

Redux Middleware vs. Higher Order Actions

Wanted to apply the "Higher-order-*" composition to action creators.

Maybe pros

  • Feels a bit more explicit than middleware when defined inside action creator
  • Similar feel to using higher order component
  • Can control order on a per-action basis.
  • Keeps the core action objects themselves purer