-
SummaryI have encountered a strange issue of mobx stops observing state in some components after upgrading to React 19. I believe that this is connected with its more strict approach to This happens in
In addition,
Disabling the built-in The main issue is that I cannot reproduce this in an isolated environment, this only happens in some components in a large production codebase. There is no clear reproduction pattern that I can observe. I would highly appreciate getting help in pinpointing the source of this problem. Dependencies and setupCurrent
Before upgrading to React 19 (same codebase)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'd check first if none of the packages you listed above (react, mobx, etc) accidentally appear twice in your lock.file / node_modules. No other known issues, so if that is not the case, you'd have to find a way to reproduce. |
Beta Was this translation helpful? Give feedback.
Yes, there is one of each only.
I found out that this happens in lists if the order of its items is changed during list update (i.e. there is a new batch of data with different sorting), so this should be solely related to the react memo, and not to the mobx.