agraboso / agraboso/redux-api-middleware

Custom error evaluation

Aberta
#170 2 comentários 2 reações 0 responsáveis Ver no GitHub
enhancement
Linguagem predominante
JavaScript
Estrelas
1.5k
Forks
190
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.