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

Invalid "Trying to cancel a request that is not in flight" warnings #63

Closed
ryanashcraft opened this issue Apr 11, 2017 · 0 comments
Closed
Labels

Comments

@ryanashcraft
Copy link
Contributor

Created from #5 (comment)

The issue occurs with connectRequest when query key for the query config returned from mapPropsToConfig is derived from redux state that changed from the request finishing.

Pretty sure this is a race condition due to query middleware dispatching the REQUEST_SUCCESS event before the requestAsync promise is resolved. Since connectRequest has its own state for pending requests, it can get out of sync and cause cancel actions to be dispatched.

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

No branches or pull requests

1 participant