Unexpected changes while using mobx-undecorate to migrate from mobx v5 to mobx v6 #3615
Replies: 3 comments 1 reply
-
Could be due to older jscodeshift version (or rather it's depedency EDIT: maybe we could try to bump only
Not at the moment. How should it work? Just change the call or also omit the overrides arg? Or only omit overrides that are not default? What about |
Beta Was this translation helpful? Give feedback.
-
To avoid overengineering here and putting a lot of effort in a single use,
you could also try a simple find and replace to change it to
makeAutoObservable?
…On Tue, 24 Jan 2023, 14:13 muneerashaik, ***@***.***> wrote:
Thanks for the quick reply @urugator <https://github.com/urugator>
By default it uses makeObservable, Can we configure makeAutoObservable as
default ?, If yes, how can we do this?
It would be great to configure the mobx-undecorate changes like
- What to keep the class constructor while migrating makeObservable or
makeAutoObservable with overrides and options etc
In our case, we wanted to use makeAutoObservable in our classes with no
overrides
—
Reply to this email directly, view it on GitHub
<#3615 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN4NBCIYPQ5YKJZR7LNCVLWT7IQ3ANCNFSM6AAAAAAUEXT3YA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
In case you don't wanna wait for PR (it can take some time as we have to deal with more or less, at least seamingly, unrelated problems): "resolutions": {
"recast": "^0.23.1"
}, should do the trick. Remove it once you're done with migration. |
Beta Was this translation helpful? Give feedback.
-
We used
mobx-undecorate
to migrate from mobx v5 to mobx v6.It helps us to make the migration process smooth, But we have encountered a few unexpected changes in our code base
!
from our class variabletodos
, How can I stop making this change?makeObservable
, Can we configuremakeAutoObservable
as default ?, If yes, how can we do this?Here is the sample code for reference
From:
To:
Our mobx version
used
npx mobx-undecorate
command to migratemweststrate, urugator
Beta Was this translation helpful? Give feedback.
All reactions