CARTAvis / carta-frontend

Source code repository for the frontend component of CARTA, a new visualization tool designed for the ALMA, the VLA and the SKA pathfinders.
https://cartavis.github.io/
GNU General Public License v3.0
20 stars 10 forks source link

mobx-react v9 upgrade #2432

Open YuHsuan-Hwang opened 1 week ago

YuHsuan-Hwang commented 1 week ago

mobx-react v7 to v9 introduces a breaking change that will require large changes. Computed values and reactions no longer response to (and accept) react states and props. Looks like we will need to create observable copies for all props that are used in computed values and reactions, which could be a huge work.

Details: https://github.com/mobxjs/mobx/tree/main/packages/mobx-react#note-on-using-props-and-state-in-derivations