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

Avoid dispatch in the middle of location action dispatch #332

Closed
wants to merge 1 commit into from

Conversation

gaearon
Copy link
Contributor

@gaearon gaearon commented Sep 29, 2014

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.

@ryanflorence
Copy link
Member

I don't think this is an issue anymore, please tell me to reopen if I'm wrong!

@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants