redux-batched-updates icon indicating copy to clipboard operation
redux-batched-updates copied to clipboard

Dispatch returns undefined in certain cases.

Open tappleby opened this issue 8 years ago • 1 comments

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 as an alternative.

tappleby avatar Aug 15 '15 00:08 tappleby

I agree. Especially since @tappleby removed redux-batched-updates from the Redux ecosystem docs: https://github.com/rackt/redux/commit/dee3f07f1e81ed2a49dc8a599f1ed8952c9dc8c2 Which is confusing because most of the issues and talk mentions redux-batched-updates.

peteruithoven avatar Jan 13 '16 13:01 peteruithoven