Skip to content

Bug: Concurrent mode processes state updates out of order #18497

Description

@sophiebits

React version: 0.0.0-experimental-d7382b6c4

I have a sandbox that adds the next integer to an array every time you move your mouse: https://codesandbox.io/s/compassionate-currying-nccok.

Intermediate state updates get dropped, then come back later (eg: you would never expect it to render with [0, 2]):

confused

My expectation is that these are all the same priority level and thus should get processed in order. Am I doing something wrong?

cc @acdlite @gaearon

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions