rackt/react-router — pull request #332 by gaearon (2014-09-29 14:48:28+00:00)
Title: Avoid dispatch in the middle of location action dispatch

Fixes a bug introduced in #326 that caused transitions to fail.

Flux forbids actions dispatched in the middle of dispatch, but that's precisely what happens when `PUSH` triggers `REPLACE` in default abortion handler.

With this commit, we introduce a pending action queue that is always executed in one tick, but allows action handlers to fire other actions.