Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (6 sloc) 925 Bytes

What is the difference between this and other promise middleware?

For context, this question was originally asked in issue #27.


Both middleware solve the same problem, but the implementation is different. Promise middleware dispatches a pending action in addition to a rejected or fulfilled action. This is a feature acdlite/redux-promise has not implemented at time of writing (November 2015). The pending action enables optimistic updates and describes an unsettled promise.

Both middleware use the Flux Standard Action specification.

One could also argue the API for promise middleware is more transparent and easier to integrate. For example, you do not need to use redux-actions.