Skip to content

Commit

Permalink
Fix deprecated: useStrict without argument
Browse files Browse the repository at this point in the history
  • Loading branch information
didierfranc committed Sep 6, 2016
1 parent 7117a07 commit 17d4599
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/counter/stores/appState.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { observable, action, extras, useStrict, runInAction } from 'mobx';
import remotedev from '../../../src/dev'; // import remotedev from 'mobx-remotedev/lib/dev';

useStrict();
useStrict(true);

const appState = observable({
count: 0
Expand Down
2 changes: 1 addition & 1 deletion src/spy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
else onlyActions[name] = config.onlyActions;
if (config.filters) filters[name] = config.filters;
if (config.global) {
Expand Down

0 comments on commit 17d4599

Please sign in to comment.