We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1d280c commit b6b09e2Copy full SHA for b6b09e2
src/lib/mobx/add-to-devtools.ts
@@ -1,5 +1,7 @@
1
const spy = require('mobx-remotedev/lib/spy').default;
2
3
export const addToDevtools = (store: object) => {
4
- spy(store, { global: true, name: store.constructor.name });
+ if (process.env.NODE_ENV !== 'production') {
5
+ spy(store, { global: true, name: store.constructor.name });
6
+ }
7
};
0 commit comments