agraboso / agraboso/redux-api-middleware

Custom error evaluation

未關閉
#170 2 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
JavaScript
星號
1.5k
分支
190
PR 合併指標
30 天內沒有已合併 PR

描述

The api I'm working with always returns an HTTP 200 whether an error has occurred or not. There is a `status` key that will either be "success" or "error" so what I'm looking for is a way to define how this middleware determines which action to dispatch when it receives a response based on something within the response object.

I was wondering if this is possible in the current implementation and if not how open you'd be to receive a PR for this functionality if it seems useful to others.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。