Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MobX 6 Support #294

Merged
merged 5 commits into from
Feb 14, 2021
Merged

MobX 6 Support #294

merged 5 commits into from
Feb 14, 2021

Conversation

BradenM
Copy link
Contributor

@BradenM BradenM commented Dec 1, 2020

Adds support for MobX 6

Upgraded appropriate packages and ran the mobx-undecorate codemod to make the few required changes.

Caused one minor type issue that was easily resolved.

Currently working fine in one of my soon-to-be production react-native applications.

Also 🍒 picked @special-character 's babelrc changes from #288 to fix the test suite.

Closes #284

@mtsewrs
Copy link
Collaborator

mtsewrs commented Dec 2, 2020

@BradenM Thanks for this, I've tested this and it looks good!

Great if someone else could test this as well @chrisdrackett @special-character

@beepsoft
Copy link
Collaborator

beepsoft commented Jan 31, 2021

It works for me as well.

Note that with the latest mobx (6.1.4) you get this error mobxjs/mobx-state-tree#1653, which will be hopefully fixed soon. So for now I just use "6.0.4" as you did, and with that it works all right.

@gorhom
Copy link

gorhom commented Feb 2, 2021

@beepsoft this been fixed with Version 5.0.1

@jesse-savary jesse-savary merged commit 6fc35b4 into mobxjs:main Feb 14, 2021
@weglov
Copy link
Contributor

weglov commented Mar 2, 2021

Hi, what about the new version of the package? there seems to be a lot of changes since version 0.13.0

jesse-savary pushed a commit that referenced this pull request Mar 13, 2021
* feat(deps): upgrade babel/mobx deps to mobxv6

* feat(query): migrate to mobx v6

* Put babelrc back so tests pass

* Remove unneeded transform in babelrc so rollup can build successfully

https://www.npmjs.com/package/@rollup/plugin-babel#modules

* fix(ts): type error TS7006 in query

Co-authored-by: Brandon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compatibility with MobX version 6
7 participants