mobx: Reaction is not working and observers is emptied incorrectly
Intended outcome:

Reaction works fine. It will enter runReactions().
Actual outcome:

Somtimes, all reactions do not work.
- It never enter
runReactions()if it has been broken. - Observed variables becomes Unobserved.
- Observers have been emptied incorrectly.
How to reproduce the issue:
- Invoke function
- Using Mobx to change internal state in function
- 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)
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.