This PR alters bufferActions.js to not disable the buffer until all actions in the queue are dispatched.
The issue I had was that whilst the buffer was being purged, the dispatched actions in the queue were causing other actions to be dispatched by other parts of the code (like in componentDidMount). Since buffer = false had already been set, these actions passed through the bufferActions middleware and got dispatched and reduced before the buffer had finished emptying - causing them to be incorrectly ordered.
This PR alters
bufferActions.js
to not disable the buffer until all actions in the queue are dispatched.The issue I had was that whilst the buffer was being purged, the dispatched actions in the queue were causing other actions to be dispatched by other parts of the code (like in
componentDidMount
). Sincebuffer = false
had already been set, these actions passed through thebufferActions
middleware and got dispatched and reduced before the buffer had finished emptying - causing them to be incorrectly ordered.resolves #67