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

xhr request race condition readyState already 4 when it should be 1,2,3 .. #89

Open
eskimor opened this issue Mar 8, 2019 · 1 comment

Comments

@eskimor
Copy link
Contributor

eskimor commented Mar 8, 2019

When registering onreadystatechange for an XHR, the handler will be called three times with xmlHttpRequestGetReadyState retrieving already 4 every time, instead of just the last time.

This PR suggests this might be a regression in either ghcjs-dom or jsaddle (the PR refers to ghcjs-dom but also refers to versions that only exist for jsaddle).

We were able to fix this issue for reflex-dom by means of this, but the issue obviously lies deeper.

@ryantrinkle
Copy link

It's because of this: ghcjs/jsaddle-dom#14

I'm not sure why it's marked async or what the correct solution is.

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

No branches or pull requests

2 participants