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

Fix deprecated: useStrict without argument #7

Merged
merged 1 commit into from
Sep 8, 2016

Conversation

didierfranc
Copy link
Contributor

No description provided.

@zalmoxisus
Copy link
Owner

Hey, @didierfranc.

Thanks for the contribution! The first one is a good catch, but the second one should be replaced with isStrictModeEnabled which is intended to replace deprecated useStrict without argument

@@ -13,7 +13,7 @@ const monitors = {};
const scheduled = [];

function configure(name, config = {}) {
if (typeof config.onlyActions === 'undefined') onlyActions[name] = mobx.useStrict();
if (typeof config.onlyActions === 'undefined') onlyActions[name] = mobx.useStrict(true);
Copy link
Owner

@zalmoxisus zalmoxisus Sep 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be

if (typeof config.onlyActions === 'undefined') {
  onlyActions[name] = mobx.isStrictModeEnabled && mobx.isStrictModeEnabled();
}

@didierfranc
Copy link
Contributor Author

Done 😉

@zalmoxisus
Copy link
Owner

Awesome. Thanks a lot! Will cut a release tomorrow.

@zalmoxisus zalmoxisus merged commit e494c71 into zalmoxisus:master Sep 8, 2016
@didierfranc
Copy link
Contributor Author

didierfranc commented Sep 8, 2016

Before this merge mobx-remotedev was broken by the latest version of mobx 😉

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.

2 participants