Skip to content

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

Open
@eskimor

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions