agraboso / redux-api-middleware

Redux middleware for calling an API.
MIT License
1.49k stars 195 forks source link

No way to associate an outgoing REQUEST with an incoming SUCCESS #255

Closed jtiscione closed 3 years ago

jtiscione commented 3 years ago

The documentation contains misleading information about a "meta" property, saying you can attach it to the REQUEST action and get it in the SUCCESS action. But it isn't included in the response.

This makes the entire library pretty useless if there is a race condition.

jtiscione commented 3 years ago

Never mind, didn't realize you have to attach it to the SUCCESS action yourself in the types array. I thought attaching it to the initial REQUEST action would get it through.