mobx: Reaction is not working and observers is emptied incorrectly

Intended outcome:

image

Reaction works fine. It will enter runReactions().

Actual outcome:

image

Somtimes, all reactions do not work.

  1. It never enter runReactions() if it has been broken.
  2. Observed variables becomes Unobserved.
  3. Observers have been emptied incorrectly.

How to reproduce the issue:

  1. Invoke function
  2. Using Mobx to change internal state in function
  3. Observing internal state to change view

Run above workflow many times, it sometimes may cause the problem.

Versions 4.15.7

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

I confirm it’s a bug of chrome, I just put the video here to explain the details.

I can reproduce it with my private project which I cannot share. I will retry to reproduce the issue with minimal repo.