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

Upgrade MobX remove decorators #262

Merged
merged 4 commits into from Nov 10, 2022
Merged

Conversation

warpdesign
Copy link
Owner

@warpdesign warpdesign commented Nov 10, 2022

  • Upgraded to MobX 6.x
  • Removed TS decorators (specs are still changing so most libs decided to deprecate/forbid them)
  • Added MobX safety checks
  • Upgrated to latest 3.x version of blueprint and replaced deprecated HotkeysTarget with HotkeysTarget2
  • Removed semi from prettier config

Note: blueprintjs still has lots of deprecated components before being able to upgrade to v4.

- updated mobx/mobx-react to v6 (removed outdated mobx-react-devtools)
- removed every mobx & blueprintjs decorators

I left experimentalDecorators in tsconfig/swrc for now since some
decorators remain:
- withMenuAccelerators
- needsConnection
- canTimeout (unused)
Note that `observableRequiresReaction` is still set to false: when enabling it,
lots of warnings are reported because we access observable properties
inside constructors.

Maybe this code could be improved: I'm not sure wrapping observable access
withing constructors using action() is a good idea since we are not
modifying any state, only reading it.
@warpdesign warpdesign changed the title Upgrade mobx remove decorators Upgrade MobX remove decorators Nov 10, 2022
@warpdesign warpdesign merged commit 8fcc434 into master Nov 10, 2022
@warpdesign warpdesign deleted the upgrade-mobx-remove-decorators branch November 10, 2022 17:07
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.

None yet

1 participant