Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not disable buffer until all queued actions dispatched #68

Open
wants to merge 1 commit into
base: 1.0-breaking-changes
Choose a base branch
from

Conversation

alanshaw
Copy link

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.

resolves #67

@alanshaw
Copy link
Author

alanshaw commented Feb 1, 2017

Hi @elgerlambert any thoughts on this one? Could we get it merged and published?

@alanshaw
Copy link
Author

alanshaw commented Feb 7, 2017

@elgerlambert ping?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant