acdlite / acdlite/redux-batched-updates
Dispatch returns undefined in certain cases.
- Linguagem predominante
- JavaScript
- Estrelas
- 223
- Forks
- 12
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
I brought up this issue in rackt/redux#481.
Im not sure if this can be solved from a code point of view but it might be worth documenting the issue with dispatch result being undefined in certain cases.
- middleware needs to come after thunk, promise or any middleware where you expect a value to be returned.
- with non-thunk actions you will not be able to access the return value.
Perhaps worth listing [redux-batched-subscribe](https://github.com/tappleby/redux-batched-subscribe) as an alternative.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Issue text does not mention any file or test, so start by reading the repo README/docs for middleware/dispatch usage notes. Add a short documentation note that dispatch returns undefined for non-thunk/promise-returning flows unless middleware ordering allows a return value. Include the redux-batched-subscribe alternative if appropriate. Done when the docs explicitly describe this caveat and expected dispatch return behavior.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript
- Domínio
- documentation
- Tipo de issue
- Documentação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 48/100